Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Fix permissions for user home directory
- chmod 755 ~/.
- # Fix permissions for user home sub-directories and files
- find ~/. -type d -print0 | xargs -0 chmod 0775
- find ~/. -type f -print0 | xargs -0 chmod 0664
- # Fix permissions for .ssh directory and files
- chmod 0700 ~/.ssh
- chmod 0644 ~/.ssh/authorized_keys
Add Comment
Please, Sign In to add comment