archinstall/modules/chroot/20-users.sh
2024-05-25 15:59:32 +02:00

9 lines
227 B
Bash

#!/bin/bash
#shellcheck disable=SC2154
shell="$(sed -n "/$shell/{p;q}" /etc/shells)"
useradd -mG wheel,video "$username" -s "${shell:-/bin/bash}"
echo "root:$root_passwd" | chpasswd
echo - "$username:$user_passwd" | chpasswd