This commit is contained in:
Arya 2023-07-14 16:09:11 +05:30
parent 31f82aa928
commit 4a77115b0b
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -3,7 +3,7 @@
# This file is generated by PublAPI. Do not edit this file.
echo "E-Mail of {{username}} is {{email}}."
pass="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 64)"
useradd -Um -s /bin/bash {{username}}
useradd -k /configs/skel -Um -s /bin/bash {{username}}
chmod 711 /home/{{username}}
printf "%s\n%s" "${pass}" "${pass}" | passwd {{username}}
echo "${pass}" > /home/{{username}}/pass