diff --git a/utils/signup-script-template b/utils/signup-script-template index 2bd691c..20e8d95 100644 --- a/utils/signup-script-template +++ b/utils/signup-script-template @@ -5,6 +5,7 @@ echo "E-Mail of {{username}} is {{email}}." useradd -Um -s /bin/bash {{username}} chmod 711 /home/{{username}} printf "%s\n%s" "${pass}" "${pass}" | passwd {{username}} +usermod -aG users {{username}} mkdir /home/{{username}}/.ssh echo "{{sshkey}}" > /home/{{username}}/.ssh/authorized_keys chmod 700 /home/{{username}}/.ssh