Use adduser instead of usermod
This commit is contained in:
parent
92af23a180
commit
e6e95c591c
@ -25,7 +25,7 @@ while true; do
|
||||
(
|
||||
set -e
|
||||
adduser --gecos "" "$NEW_USER"
|
||||
usermod -a -G sudo "$NEW_USER"
|
||||
adduser "$NEW_USER" "sudo"
|
||||
)
|
||||
if [ "$?" == "0" ]; then
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user