Skip to content

Instantly share code, notes, and snippets.

@rajiteh
Created February 6, 2014 19:44
Show Gist options
  • Save rajiteh/8851240 to your computer and use it in GitHub Desktop.
Save rajiteh/8851240 to your computer and use it in GitHub Desktop.
find and update permissions
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