mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 20:15:29 +02:00
setfacl: add page
This commit is contained in:
parent
757651b06f
commit
2b28fea262
1 changed files with 19 additions and 0 deletions
19
pages/linux/setfacl.md
Normal file
19
pages/linux/setfacl.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# setfacl
|
||||
|
||||
> Set file access control lists.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue