diff options
| author | Craig Jennings <c@cjennings.net> | 2024-11-10 20:19:20 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-11-10 20:19:20 -0600 |
| commit | 9d039c3fd9fc628e883affc23c9533769e4c8b2c (patch) | |
| tree | f949d4c78dd58ed58bd5651948482853e948396a | |
| parent | 390e4b664e3d8463dabbc31ad48519a3f1df2788 (diff) | |
adding user to additional groups
| -rwxr-xr-x | archsetup | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" |
