fix up permissions on ssh directory
This commit is contained in:
parent
b74b5f808d
commit
5ef04de4f5
|
@ -21,6 +21,7 @@ touch /home/$1/.ssh/authorized_keys
|
|||
chmod 700 /home/$1/.ssh
|
||||
chmod 600 /home/$1/.ssh/authorized_keys
|
||||
echo "$3" | tee /home/$1/.ssh/authorized_keys
|
||||
chown -R $1:tilde /home/$1/.ssh
|
||||
|
||||
# send welcome email
|
||||
sed -e "s/USERNAME/$1/g" -e "s/PASSWORD/${pw}/g" /var/aussie/emails/signup.tmpl | sendmail $1@aussies.space $2 fosslinux@aussies.space
|
||||
|
|
Loading…
Reference in New Issue