Skip to content

Instantly share code, notes, and snippets.

@goldnetonline
Created May 24, 2016 05:23
Show Gist options
  • Save goldnetonline/6e43d073a7a14aaeac341a707f98eff9 to your computer and use it in GitHub Desktop.
Save goldnetonline/6e43d073a7a14aaeac341a707f98eff9 to your computer and use it in GitHub Desktop.
Bulk Chmod for linux servers
find ./ -type f -not -perm 644 -not -name ".ftpquota" -exec chmod 644 -c {} \;; find ./ -type d -not -perm 755 -not -group nobody -exec chmod 755 -c {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment