shell-things/chmod
Mikaela Suomalainen 80d8b28cc9 Rearranging (#52)
2014-12-27 11:01:16 +02:00

27 lines
501 B
Bash
Executable File

#!/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 ~
mkdir -p ~/public_html/
chmod -R 755 ~/public_html/
touch ~/.face
touch ~/.forward
touch ~/.netrc
chmod a+r-wx,u+rw ~/.face
chmod a+r-wx,u+rw ~/.forward
chmod 600 ~/.netrc
set +x