forked from ProjectSegfault/publapi
add users to users
group
This commit is contained in:
parent
804fc1c5e4
commit
b6c0ac8e6b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user