The following example modifies the permissions for the user george to read/write.
$ setfacl -m user:george:6 ch3.doc $ getfacl ch3.doc # file: ch3.doc # owner: nathan # group: staff user::rw- user::george:rw- #effective:r-- group::r- #effective:r-- mask:r-- other:r- |
The following example modifies the default permissions for the group staff to read and the default ACL mask permissions to read/write on the book directory.
$ setfacl -m default:group:staff:4,default:mask:6 book |