From c67dfddc70fa302f7b2c9533126b9b5f850bdbd2 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 3 Sep 2019 21:52:08 +0300 Subject: [PATCH] bash/addusers: add the usual Debian groups ref: #4 --- bash/addusers | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/addusers b/bash/addusers index 71f3bc7..a8fd882 100755 --- a/bash/addusers +++ b/bash/addusers @@ -4,12 +4,14 @@ # installations. I am too lazy to always do this by hand! # Loop with the users -for user in mikaela matti tommi tiina nenne lena +for user in mikaela matti tommi tiina nenne anneli do # To see that it works echo "Current user: $user" # Create the user & homedir if it doesn't exist useradd -m $user + # Add the user to normal Debian groups + usermod -a -G lp,cdrom,floppy,audio,dip,plugdev,netdev,bluetooth,lpadmin "$user" # Set user & group as the owner (in case fresh install with old /home) chown -R $user:$user /home/$user # Remove password & force new to be given during first login