Update src/first_setup/user_carousel/mod.rs

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-11-27 21:23:06 +01:00
parent 10d6516a8d
commit a6a4ed12c5

View File

@ -19,6 +19,7 @@ USERNAME="$0"
PASSWORD="$1"
FULLNAME="$2"
HOSTNAME="$3"
groupadd -g 1000 "${USERNAME}"
adduser --uid 1000 --gid 1000 --quiet --disabled-password --shell /bin/bash --gecos "${FULLNAME}" "${USERNAME}"
echo "${USERNAME}":"${PASSWORD}" | chpasswd
usermod -a -G sudo "${USERNAME}"