summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-12-16 10:48:52 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-12-16 10:48:52 +0100
commitd87649914515cdebfea800607b6efb5ef00d7ff0 (patch)
treee0950f176f9ff4c4205c73e0958c5dfdc05b50a9 /util
parentd727e5201e829dfc749c7ac6388adbea37aa714d (diff)
downloadarchinstall-d87649914515cdebfea800607b6efb5ef00d7ff0.tar
archinstall-d87649914515cdebfea800607b6efb5ef00d7ff0.tar.zst
archinstall-d87649914515cdebfea800607b6efb5ef00d7ff0.zip
Test version for new user configuration.
Diffstat (limited to 'util')
-rw-r--r--util/configure_users.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/configure_users.sh b/util/configure_users.sh
index 3c2fcc4..be91f2d 100644
--- a/util/configure_users.sh
+++ b/util/configure_users.sh
@@ -24,10 +24,13 @@ default_password=$2
echo "root:$default_password" | chpasswd
-useradd -m $admin_username
-usermod -aG wheel $admin_username
+useradd -m $admin_username # create user and according home directory
+usermod -aG wheel $admin_username # add user to sudo-priviledged wheel group
echo "$admin_username:$default_password" | chpasswd
+sed -i '/%wheel ALL=(ALL) ALL/s/^# //g' /etc/sudoers # activate wheel group
+ # by uncommenting special
+ # line in sudoers file
# passwd -l root # lock the root account if changing /etc/sudoers is implemented
echo "Configured users - OK"