mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 16:42:10 +02:00
19 lines
366 B
Markdown
19 lines
366 B
Markdown
# setfacl
|
|
|
|
> Set file access control lists (ACL).
|
|
|
|
- Modify ACL of a file for user with read and write access:
|
|
|
|
`setfacl -m u:{{username}}:rw {{file}}`
|
|
|
|
- Modify default ACL of a file for all users:
|
|
|
|
`setfacl -d -m u::rw {{file}}`
|
|
|
|
- Remove ACL of a file for an user:
|
|
|
|
`setfacl -x u:{{username}} {{file}}`
|
|
|
|
- Remove all ACL entries of a file:
|
|
|
|
`setfacl -b {{file}}`
|