summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup5
1 files changed, 5 insertions, 0 deletions
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"