Using setfacl on linux, seems like only
root) can modify the ACL via setfacl, is that right?
If there is a directory owned by
marry, she can read any file, create new, delete old, make directory trees, etc. Everything seems to be fine, they share the content and can update each other's files.
joe just wants to have ability to set ANY ACL, so in future he would like to allow
linda to share his directory. But this is allowed only for the files he owns, so
mary's files and directories are not accessible to change permission on.
The questions are:
- Is there a permission to change permission on ACL (anything else than rwx)?
- Is there any method how to set the owner of files/directories created by
joeautomagically via any ACL setup (repressive applying of
chown -Rfails for files not owned by
@grawity: I cannot comment, so I'll edit and try to explain the motivation here: the main point is that
joe as the "shared directory manager" and owner wants to incrementally add/remove subsequent users (for simplicity all having the same
setfacl -d -m u:linda:rwx setfacl -m u:linda:rwx
He cannot create/alter any group, he is just regular user with
uid > 0. I thought of transfering the ownership only, not the permissions. Imagine
linda now creates a directory. New member
jack enters the club, asks
joe to add him to the list. But
joe cannot alter other than his own directories... So
jack cannot access files created by
joe would have to ask her to set permissions etc.
It might make more sense now.