Skip to content

Instantly share code, notes, and snippets.

@jraleman
Created September 27, 2018 10:57
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 jraleman/b8eeca6aeb3953100f9d3b0b29eaaf3c to your computer and use it in GitHub Desktop.
Save jraleman/b8eeca6aeb3953100f9d3b0b29eaaf3c to your computer and use it in GitHub Desktop.
Fix files and directories permissions
#!/bin/sh
# Source: https://odd.blog/2013/11/05/fix-file-644-directory-775-permissions-linux-easily/
# For directories only do this.
find . -type d -exec chmod 775 {} \;
# For files only do this.
find . -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment