setfacl Command Examples

Set file access control lists (ACL). More information: https://manned.org/setfacl.

setfacl --modify u:{{username}}:rw {{path/to/file_or_directory}}

setfacl --modify --default u::rw {{path/to/file_or_directory}}

setfacl --remove u:{{username}} {{path/to/file_or_directory}}

setfacl --remove-all {{path/to/file_or_directory}}