Created
February 6, 2014 19:44
-
-
Save rajiteh/8851240 to your computer and use it in GitHub Desktop.
find and update permissions
This file contains hidden or 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
find * ! -user admin ! -user root -user nobody -type d -maxdepth 1 -exec chown -R DOMAIN\\{}:DOMAIN\\domain\ users {} \; -exec chmod -R 640 {} \; -exec echo "[" `date -Iseconds` "]: PERMISSIONS UPDATED FOR " {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment