From b6c0ac8e6bf57c8e38f011b4d796b575805b5f07 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sat, 21 Jan 2023 22:29:54 +0530 Subject: [PATCH] add users to `users` group --- utils/signup-script-template | 1 + 1 file changed, 1 insertion(+) 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