Setfacl Examples: Give Users and Groups Access to Files and Directories

Last updated:
Table of Contents

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

setfacl: command not found

On Ubuntu, install package acl to enable this command.

Read permission to file

TODO

Write permission to file

TODO

Read permission to directory

TODO

Full permissions to directory

To give an user full permissions to a directory and under, recursively, use: -R -m u:myuser:rwx myuser

Example give user john permission to read, write and execute files under directory mydir, recursively:

$ setfacl -R -m u:john:rwx mydir

References

Dialogue & Discussion