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
cyqsimon 4073a9fd5b
{get,set}facl: update & unify style (#12169)
* {get,set}facl: update & unify style

- setfacl: add acronym to description
- setfacl: `{{file}}` -> `{{path/to/file_or_directory}}`
- {get,set}facl: use long options

* {get,set}facl: add mnemonics
2024-02-06 19:46:32 +05:30

20 lines
540 B
Markdown

# setfacl
> Set file access control lists (ACL).
> More information: <https://manned.org/setfacl>.
- [M]odify ACL of a file for user with read and write access:
`setfacl --modify u:{{username}}:rw {{path/to/file_or_directory}}`
- [M]odify [d]efault ACL of a file for all users:
`setfacl --modify --default u::rw {{path/to/file_or_directory}}`
- Remove ACL of a file for a user:
`setfacl --remove u:{{username}} {{path/to/file_or_directory}}`
- Remove all ACL entries of a file:
`setfacl --remove-all {{path/to/file_or_directory}}`