Skip to content

Instantly share code, notes, and snippets.

@OdinsHat
Created May 14, 2015 09:24
Show Gist options
  • Save OdinsHat/9fe1d0c7e8d4ab22140e to your computer and use it in GitHub Desktop.
Save OdinsHat/9fe1d0c7e8d4ab22140e to your computer and use it in GitHub Desktop.
Fix server permissions when someone accidentally chown/chmod from root recursively
# 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