skel
This commit is contained in:
parent
31f82aa928
commit
4a77115b0b
@ -3,7 +3,7 @@
|
|||||||
# This file is generated by PublAPI. Do not edit this file.
|
# This file is generated by PublAPI. Do not edit this file.
|
||||||
echo "E-Mail of {{username}} is {{email}}."
|
echo "E-Mail of {{username}} is {{email}}."
|
||||||
pass="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 64)"
|
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}}
|
chmod 711 /home/{{username}}
|
||||||
printf "%s\n%s" "${pass}" "${pass}" | passwd {{username}}
|
printf "%s\n%s" "${pass}" "${pass}" | passwd {{username}}
|
||||||
echo "${pass}" > /home/{{username}}/pass
|
echo "${pass}" > /home/{{username}}/pass
|
||||||
|
Loading…
Reference in New Issue
Block a user