2013-02-06 15:45:29 +01:00
|
|
|
#!/usr/bin/env bash
|
2023-02-21 18:08:54 +01:00
|
|
|
# This script removes permissions from other people than the owner to
|
2013-02-06 15:45:29 +01:00
|
|
|
# files/folders that they don't have access to and where they don't need
|
|
|
|
# access.
|
2014-07-16 12:09:59 +02:00
|
|
|
set -x
|
2013-02-06 15:45:29 +01:00
|
|
|
|
|
|
|
chmod g-rwx,o-rwx $HOME -R
|
|
|
|
|
|
|
|
touch ~/.oidentd.conf
|
|
|
|
|
|
|
|
chmod u+rw,g-wx+r,o-wx+r ~/.oidentd.conf
|
|
|
|
|
|
|
|
touch ~/.ICEauthority
|
|
|
|
chmod o-rw+x,g-rw+x ~
|
|
|
|
|
2013-02-06 15:54:38 +01:00
|
|
|
mkdir -p ~/public_html/
|
2014-07-16 12:09:59 +02:00
|
|
|
chmod -R 755 ~/public_html/
|
2013-02-07 06:21:59 +01:00
|
|
|
|
2013-02-07 06:22:51 +01:00
|
|
|
touch ~/.face
|
|
|
|
touch ~/.forward
|
2014-07-16 12:09:59 +02:00
|
|
|
touch ~/.netrc
|
2013-02-07 06:22:51 +01:00
|
|
|
chmod a+r-wx,u+rw ~/.face
|
|
|
|
chmod a+r-wx,u+rw ~/.forward
|
2014-07-16 12:09:59 +02:00
|
|
|
chmod 600 ~/.netrc
|
2013-02-07 06:21:59 +01:00
|
|
|
|
2015-09-12 08:02:39 +02:00
|
|
|
mkdir -p ~/.ssh
|
2015-06-11 13:02:05 +02:00
|
|
|
chmod 700 ~/.ssh
|
2015-09-02 15:37:45 +02:00
|
|
|
touch ~/.ssh/authorized_keys
|
2015-06-11 13:02:05 +02:00
|
|
|
chmod 600 ~/.ssh/authorized_keys
|
|
|
|
|
2014-10-09 21:12:25 +02:00
|
|
|
set +x
|