Created
September 27, 2018 10:57
-
-
Save jraleman/b8eeca6aeb3953100f9d3b0b29eaaf3c to your computer and use it in GitHub Desktop.
Fix files and directories permissions
This file contains hidden or 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
#!/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