Password setup failsafe
This commit is contained in:
parent
a3b9c1c3e5
commit
fdcb3acf30
@ -19,7 +19,11 @@ CHROOT_USER="$(cat /tmp/archbox_user)"
|
||||
useradd -m $CHROOT_USER
|
||||
gpasswd -a $CHROOT_USER wheel
|
||||
echo "Enter root password"
|
||||
passwd
|
||||
while true; do
|
||||
passwd && break
|
||||
done
|
||||
echo "Enter $CHROOT_USER password"
|
||||
passwd $CHROOT_USER
|
||||
while true; do
|
||||
passwd $CHROOT_USER && break
|
||||
done
|
||||
sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers
|
||||
|
Loading…
Reference in New Issue
Block a user