From d191ce7606ebfef7e855b2fc65ed40994c3bc466 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sat, 4 Jan 2020 14:29:02 -0500 Subject: [PATCH] sudo user --- installers/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index ce76ae7..4368bfc 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -16,7 +16,7 @@ if [ $(id -u) -eq 0 ]; then else pass=$(perl -e 'print crypt($ARGV[0], "password")' $password) useradd -m -p $pass $username - sudo usermod -aG root $username + sudo adduser $username sudo [ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!" fi else