shell-things/chmod

32 lines
597 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# This script removes permissions from other people than the owner to
# files/folders that they don't have access to and where they don't need
# access.
set -x
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 16:54:38 +02:00
mkdir -p ~/public_html/
chmod -R 755 ~/public_html/
2013-02-07 07:22:51 +02:00
touch ~/.face
touch ~/.forward
touch ~/.netrc
2013-02-07 07:22:51 +02:00
chmod a+r-wx,u+rw ~/.face
chmod a+r-wx,u+rw ~/.forward
chmod 600 ~/.netrc
mkdir -p ~/.ssh
chmod 700 ~/.ssh
touch ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
2014-10-09 22:12:25 +03:00
set +x