1) To recursively give directories read&execute privileges
2) To recursively give files read privileges:
find /path/to/base/dir -type d -exec chmod 755 {} +
find /path/to/base/dir -type f -exec chmod 644 {} +
Get list of acls
getfacl .
Set default group for all files in directories (recursive)
#sudo chmod g+s . # recursive set group bit => every file inherits group from parent directory sudo find . -type d -exec chmod g+s {} + # set current group rwx righs sudo setfacl -R -m group::rwx . # set default group rwx rights sudo setfacl -dR -m group::rwx .
42600cookie-checkLinux User Rights (On folders)