1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/setfacl.md

20 lines
365 B
Markdown
Raw Normal View History

2016-12-13 22:50:24 +08:00
# setfacl
2016-12-14 00:50:54 +08:00
> Set file access control lists (ACL).
2016-12-13 22:50:24 +08:00
- 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:
2016-12-13 22:50:24 +08:00
`setfacl -x u:{{username}} {{file}}`
- Remove all ACL entries of a file:
`setfacl -b {{file}}`