Last active
July 22, 2026 03:51
-
-
Save SuggonM/ec6cc011d3c40595a1bb7db5c1c13de3 to your computer and use it in GitHub Desktop.
Full permission reset for directory using chmod. Useful when your directory permissions are messed up.
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
| # strip all permissions, then change files to 644 and directories to 755 | |
| chmod -R 0000 /path/to/dir | |
| chmod -R u+rwX,go+rX /path/to/dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment