Page History
...
In traditional POSIX, access permissions are granted to user/group/other in mode read/write/execute. The permissions can be checked with the -l option of the command ls. For instance, if if user1 owns the folder test, the output would be the following:
| Code Block | ||||
|---|---|---|---|---|
| ||||
$ ls -lahd test/ drwxr-xr-x 2 <user1>user1 csstaff 4.0K Feb 23 13:46 test/ |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
$ getfacl test # file: test # owner: <user1>user1 # group: csstaff user::rwx group::r-x other::r-x |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
$ setfacl -m user:<user2>user2:rw test/ $ getfacl test/ # file: test # owner: <user1>user1 # group: csstaff user::rwx user:<user2>user2:rw group::r-x mask::rwx other::r-x |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
$ setfacl -x user:<user2>user2 test/ $ getfacl test/ # file: test # owner: <user1>user1 # group: csstaff user::rwx group::r-x mask::rwx other::r-x |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
$ setfacl -dm user:<user2>user2:rw test/ $ getfacl test # file: test # owner: <user1>user1 # group: csstaff user::rwx group::r-x mask::rwx other::r-x default:user::rwx default:user:<user2>user2:rw default:group::r-x default:mask::rwx default:other::r-x |
...