You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chmod 597B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. # This script removes permissions from other people than the owner to
  3. # files/folders that they don't have access to and where they don't need
  4. # access.
  5. set -x
  6. chmod g-rwx,o-rwx $HOME -R
  7. touch ~/.oidentd.conf
  8. chmod u+rw,g-wx+r,o-wx+r ~/.oidentd.conf
  9. touch ~/.ICEauthority
  10. chmod o-rw+x,g-rw+x ~
  11. mkdir -p ~/public_html/
  12. chmod -R 755 ~/public_html/
  13. touch ~/.face
  14. touch ~/.forward
  15. touch ~/.netrc
  16. chmod a+r-wx,u+rw ~/.face
  17. chmod a+r-wx,u+rw ~/.forward
  18. chmod 600 ~/.netrc
  19. mkdir -p ~/.ssh
  20. chmod 700 ~/.ssh
  21. touch ~/.ssh/authorized_keys
  22. chmod 600 ~/.ssh/authorized_keys
  23. set +x