Dotfiles from time before I knew the word dotfiles, but the name has stuck.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

32 lines
597B

  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