1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 00:02:09 +02:00
tldr/pages/linux/setfacl.md
2022-03-21 14:07:48 -03:00

20 lines
415 B
Markdown

# setfacl
> Set file access control lists (ACL).
> More information: <https://manned.org/setfacl>.
- 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 a user:
`setfacl -x u:{{username}} {{file}}`
- Remove all ACL entries of a file:
`setfacl -b {{file}}`