Skip to content

Instantly share code, notes, and snippets.

@GregGallant
Last active August 29, 2015 14:06
Show Gist options
  • Save GregGallant/6d34d35641f26d42da72 to your computer and use it in GitHub Desktop.
Save GregGallant/6d34d35641f26d42da72 to your computer and use it in GitHub Desktop.
Specified chmod for files and dirs
Recursive change mode of only files (to something workably secure)
find /my/awesome/path -type f -exec chmod 644 {} +
Recursive change mode of only directories (to something workably secure)
find /my/awesome/path -type d -exec chmod 755 {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment