Created
May 7, 2024 08:36
-
-
Save iTeeLion/514da4b7c94f773986d74706ddb00b70 to your computer and use it in GitHub Desktop.
Linux ACL examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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