Skip to content

Instantly share code, notes, and snippets.

@iTeeLion
Created May 7, 2024 08:36
Show Gist options
  • Save iTeeLion/514da4b7c94f773986d74706ddb00b70 to your computer and use it in GitHub Desktop.
Save iTeeLion/514da4b7c94f773986d74706ddb00b70 to your computer and use it in GitHub Desktop.
Linux ACL examples
# Show ACLs for "bitrix" directory
getfacl bitrix
# Remove all ACL for "bitrix" directory
setfacl -R -b bitrix
# Recursive modify ACL for directory "bitrix"
setfacl -R -m u::rwx,g::rwx,m::rwx,u:bitrix:rwx,g:bitrix:rwx,u:master:rwx bitrix
# Recursive modify default ACL for directory "bitrix"
setfacl -R -d -m u::rwx,g::rwx,m::rwx,u:bitrix:rwx,g:bitrix:rwx,u:master:rwx,g:master:rwx bitrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment