Created
May 14, 2015 09:24
-
-
Save OdinsHat/9fe1d0c7e8d4ab22140e to your computer and use it in GitHub Desktop.
Fix server permissions when someone accidentally chown/chmod from root recursively
This file contains 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
# Fixes home dir and SSH key perms | |
chmod go-wrx ~ | |
chmod 700 ~/.ssh | |
chmod 600 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment