This commit is contained in:
teldra 2022-02-08 21:59:26 +01:00
parent 18ebb32efa
commit eff8c0ac35
1 changed files with 6 additions and 1 deletions

View File

@ -69,10 +69,15 @@ if [ "$ENC" == "1" ]; then
echo "fi" >> /etc/runit/core-services/99-changepwdisk.sh
fi
useradd -G wheel -m -s /usr/bin/bash -c "${USERNAME}" "${USERNAME}"
useradd -G wheel,socklog,audio,video,floppy,cdrom,optical,input,users -U -m -s /usr/bin/bash -c "${USERNAME}" "${USERNAME}"
if grep -q lpadmin /etc/group; then
usermod -a -G lpadmin "${USERNAME}"
fi
echo -e "${PASS}\n${PASS}" | passwd "${USERNAME}"
passwd -dl root
chsh -s /usr/bin/bash root
echo "echo \"User pw is '${PASS}'\"" > /etc/runit/core-services/99-changepwuser.sh
echo "echo \"You should change it before login\"" > /etc/runit/core-services/99-changepwuser.sh