Skip to content

Instantly share code, notes, and snippets.

@SuggonM
Last active July 22, 2026 03:51
Show Gist options
  • Select an option

  • Save SuggonM/ec6cc011d3c40595a1bb7db5c1c13de3 to your computer and use it in GitHub Desktop.

Select an option

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.
# 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