Skip to content

Instantly share code, notes, and snippets.

@themichaelyang
Created February 8, 2018 18:05
Show Gist options
  • Save themichaelyang/45869f16c2a541e80e636c7bc2414b42 to your computer and use it in GitHub Desktop.
Save themichaelyang/45869f16c2a541e80e636c7bc2414b42 to your computer and use it in GitHub Desktop.
chmod snippets
# from: https://superuser.com/questions/91935/how-to-chmod-all-directories-except-files-recursively
chmod -R u+rwX,go+rX,go-w /path
# from: https://unix.stackexchange.com/questions/296967/how-to-recursively-remove-execute-permissions-from-files-without-touching-folder
chmod -x+X -R *
@themichaelyang
Copy link
Author

@themichaelyang
Copy link
Author

chmod 700 for .git!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment