Guest User

Untitled

a guest
Jun 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Fix permissions for user home directory
  4. chmod 755 ~/.
  5.  
  6. # Fix permissions for user home sub-directories and files
  7. find ~/. -type d -print0 | xargs -0 chmod 0775
  8. find ~/. -type f -print0 | xargs -0 chmod 0664
  9.  
  10. # Fix permissions for .ssh directory and files
  11. chmod 0700 ~/.ssh
  12. chmod 0644 ~/.ssh/authorized_keys
Add Comment
Please, Sign In to add comment