diff --git a/add_user.sh b/add_user.sh index facd6a2..f43e6e2 100755 --- a/add_user.sh +++ b/add_user.sh @@ -31,6 +31,8 @@ mkdir -p /home/$LOGIN/Maildir/Trash/cur mkdir -p /home/$LOGIN/Maildir/Trash/new mkdir -p /home/$LOGIN/Maildir/Trash/tmp +chmod -R 0700 /home/$LOGIN/Maildir + cp -r /root/helpers/public_html /home/$LOGIN/ sed -i "s/<>/$LOGIN/g" /home/$LOGIN/public_html/index.php sed -i "s/<>/$LOGIN/g" /home/$LOGIN/public_html/parts/header.php @@ -38,7 +40,7 @@ sed -i "s/<>/$LOGIN/g" /home/$LOGIN/public_html/blog/index.php mkdir -p /home/$LOGIN/.config/weechat/ -cp irc.conf /home/$LOGIN/.config/weechat +cp /root/helpers/irc.conf /home/$LOGIN/.config/weechat mkdir -p /home/$LOGIN/.config/tmux cat << EOF > /home/$LOGIN/.config/tmux/tmux.conf @@ -87,6 +89,13 @@ EOF # end gemini chown -R $LOGIN:$LOGIN /home/$LOGIN/ + +mkdir -p /home/$LOGIN/.ssh +mkdir -p /home/$LOGIN/.gnupg + +chmod 0700 /home/$LOGIN/.ssh +chmod 0700 /home/$LOGIN/.gnupg + sendmail -f void1st@tylda.org $LOGIN@tylda.org < welcome.txt echo 524288000 > "$USER_CG/memory.max" # 500 MB RAM