mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Add new user to the sudo group on first startup.
This commit is contained in:
parent
7bd473666d
commit
233dcaa0a3
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue