Add new user to the sudo group on first startup.

This commit is contained in:
Roland 2025-03-21 21:05:09 -06:00
parent 7bd473666d
commit 233dcaa0a3
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -19,6 +19,7 @@ fi
USER_NAME=$(getent passwd 1000 | cut -d: -f1)
grep wrolpi: /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)"
usermod -aG wrolpi ${USER_NAME}
usermod -aG sudo ${USER_NAME}
# Do not run this script again.
systemctl disable wrolpi-first-startup.service