Skip to content

Instantly share code, notes, and snippets.

@montgomerykern
Last active March 30, 2016 11:29
Show Gist options
  • Save montgomerykern/e339b8df5337db91e1eb to your computer and use it in GitHub Desktop.
Save montgomerykern/e339b8df5337db91e1eb to your computer and use it in GitHub Desktop.
CLI Commands Permissions
# for directories
find . -type d -print0 | xargs -0 chmod 0755
# for files
find . -type f -print0 | xargs -0 chmod 0644
#Cent OS Based
find . -type d -perm 777 -exec chmod 755 {} \; (for changing the directory permission)
find . -type f -perm 777 -exec chmod 644 {} \; (for changing the file permission)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment