diff --git a/.install.MKAYSIGREP.run b/.install.MKAYSIGREP.run index 84a5b294..46c6cd8d 100755 --- a/.install.MKAYSIGREP.run +++ b/.install.MKAYSIGREP.run @@ -11,10 +11,10 @@ cat .environment.MKAYSIGREP > ~/.environment cat .gitconfig.MKAYSIGREP > ~/.gitconfig mkdir -p ~/.ssh cat .keys/ssh > ~/.ssh/authorized_keys -chmod 700 ~/.ssh --recursive gpg --quiet --import .keys/0x4DB53CFE82A46728.asc& -chmod 700 ~/.gnupg --recursive mkdir -p ~/.public_html/ -chmod 711 ~ -chmod 755 ~/.public_html +chmod a+xr chmod +./chmod +cat chmod > ~/chmod +chmod a+xr chmod # vim : set ft=sh : diff --git a/chmod b/chmod new file mode 100755 index 00000000..1e5379ae --- /dev/null +++ b/chmod @@ -0,0 +1,29 @@ +#!/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. +## THIS SCRIPT HAS MOVED TO SHELL-THINGS AS "chmod"! +## https://raw.github.com/Mkaysi/shell-things/master/chmod + +echo "Denying Reading, Writing and eXecuting from other users in" +echo "your home directory $HOME ." + +chmod g-rwx,o-rwx $HOME -R + +echo "Creating empty oidentd user configuration file, if it doesn't" +echo "already exist." +touch ~/.oidentd.conf + +echo "Allowing other users to read oidentd configuration file." +chmod u+rw,g-wx+r,o-wx+r ~/.oidentd.conf + +echo "Denying directory listing from other users and allowing them to" +echo "access files/folders where they have permissions." +touch ~/.ICEauthority +chmod o-rw+x,g-rw+x ~ + +echo "Creating apache2 UserDir..." +mkdir ~/public_html/ +echo "Allowing everyone to Read and eXecute everything in your apache2" +echo "userdir". +chmod o+rx-w,g+rx-w ~/public_html/ -R diff --git a/install.run b/install.run index 997ba926..80dd6c18 100755 --- a/install.run +++ b/install.run @@ -12,10 +12,9 @@ cat xsessionrc > ~/.xsessionrc cat pastebinit.xml > ~/.pastebinit.xml gpg --quiet --import .keys/0x4DB53CFE82A46728.asc& mkdir -p ~/.ssh -chmod 700 ~/.ssh --recursive -chmod 700 ~/.gnupg --recursive -mkdir -p ~/.public_html/ -chmod 711 ~ -chmod 755 ~/.public_html +chmod a+xr chmod +./chmod +cat chmod > ~/chmod +chmod a+xr chmod # vim : set ft=sh : #chmod 700 $HOME -R