From 9d039c3fd9fc628e883affc23c9533769e4c8b2c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 10 Nov 2024 20:19:20 -0600 Subject: adding user to additional groups --- archsetup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archsetup b/archsetup index d5644e5..f6577b3 100755 --- a/archsetup +++ b/archsetup @@ -264,6 +264,11 @@ create_user () { display "task" "assigning the password" echo "$username:$password" | chpasswd # any text is allowable! be careful! + display "task" "adding to appropriate groups" + (usermod -aG \ + sys,adm,network,scanner,power,uucp,audio,lp,rfkill,video,storage,optical,users \ + "$username" >> "$logfile" 2>&1) || error "crash" "adding $username to groups" "$?" + display "task" "configuring shell" # zsh cache required: $username will install via yay; zsh will run those commands mkdir -p "/home/$username/.cache/zsh/" | tee -a "$logfile" -- cgit v1.2.3