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