Add a New Comment (Rich Markup)
It is currently impossible to apply an ACL to existing files that matches the result of new files created in a directory with a default ACL. For example, the closest I can get is: $ umask 0000 $ mkdir /tmp/test $ touch /tmp/test/a $ setfacl -R -d -m u:nobody:rwx /tmp/test $ setfacl -R -m u:nobody:rwX /tmp/test $ touch /tmp/test/b $ getfacl /tmp/test/{.,*} getfacl: Removing leading '/' from absolute path names # file: tmp/test/. # owner: phemmer # group: adm user::rwx user:nobody:rwx group::rwx mask::rwx other::rwx default:user::rwx default:user:nobody:rwx default:group::rwx default:mask::rwx default:other::rwx # file: tmp/test/a # owner: phemmer # group: adm user::rw- user:nobody:rw- group::rw- mask::rw- other::rw- # file: tmp/test/b # owner: phemmer # group: adm user::rw- user:nobody:rwx #effective:rw- group::rwx #effective:rw- mask::rw- other::rw- While the effective permissions are the same, the actual permissions are not. The only reliable way I can think of to apply the default ACL to existing files would be to create a file in each directory, and use the resulting ACL from that file to apply on the existing files. This behavior is observed with setfacl-2.2.51 & kernel-3.13.6
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.12