1 example for setfacl
# Give a user rwx permissions on the current directory using ACL
sudo setfacl -m u:username:rwx .
# Give a group rwx permissions on the current directory using ACL
sudo setfacl -m g:mygroup:rwx .
# Set default permissions (when a new file is created, it will
# have these permissions)
sudo setfacl -d -m u:username:rwx .
# Set ACL permissions recursively
sudo setfacl -R -m u:username:rwx .