Skip to content

Instantly share code, notes, and snippets.

@npearce
Last active November 15, 2018 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npearce/f5616ec3ce70c4a0f10805c4eacb75f7 to your computer and use it in GitHub Desktop.
Save npearce/f5616ec3ce70c4a0f10805c4eacb75f7 to your computer and use it in GitHub Desktop.
*nix filesystem permissions
// 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