Linux.com

Re: Smart ACL management with Eiciel

Posted by: Anonymous [ip: 203.129.224.66] on June 19, 2008 01:43 PM
This is not something linux specific. It does not work for copying since a copy command will implicitly end up doing a chmod() on the destination file to match the permissions of the source file. As per ACL spec this will cause recalculation of the ACL mask to read-only. It is not a security feature rather a result of mixing non-ACL files with ACL files and the default in copy is to try and match the permissions of the source.

If you want copying to work as desired, then I think the easiest would be to set the default ACL mask to rw on all the source directories from where copying can be done (e.g. home directory recursively and /tmp), and on existing files. Then creation of new files in those directories will set the ACL mask to rw and copy will not cause changing of the mask.

#

Return to Smart ACL management with Eiciel