Last active
November 15, 2018 18:24
-
-
Save npearce/f5616ec3ce70c4a0f10805c4eacb75f7 to your computer and use it in GitHub Desktop.
*nix filesystem permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using `type -d` and `type -f` to isolate | |
// Change all directories to 775, and ignore files | |
find /home/user -type d -exec chmod 775 {} \; | |
// Change all files to 664, and ignore directories | |
find /home/user -type f -exec chmod 664 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment