Skip to content

Access control lists on Linux

To view ACLs on a file:

 > getfacl file.txt

To modify the ACL on a file:

 > setfacl -m user:rwx file.txt

To recursively change an ACL:

 > setfacl -R -m user:rwx .

To modify the default ACL for a directory:

 > setfacl -d -m user:rwx.

See the getfacl and setfacl man pages for more information.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*