1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 14:55:24 +02:00
tldr/pages/linux/setfacl.md
Pranaov S f3ebb84795
setfacl: fix incorrect shorthand argument for --remove-all (#16783)
The shorthand for --remove-all is -b, and not -X
2025-06-06 03:39:22 +03:00

20 lines
579 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|--modify]}} u:{{username}}:rw {{path/to/file_or_directory}}`
- Modify default ACL of a file for all users:
`setfacl {{[-m|--modify]}} {{[-d|--default]}} u::rw {{path/to/file_or_directory}}`
- Remove ACL of a file for a user:
`setfacl {{[-x|--remove]}} u:{{username}} {{path/to/file_or_directory}}`
- Remove all ACL entries of a file:
`setfacl {{[-b|--remove-all]}} {{path/to/file_or_directory}}`