mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-03 08:42:31 +01:00
parent
d432061547
commit
c67dfddc70
@ -4,12 +4,14 @@
|
|||||||
# installations. I am too lazy to always do this by hand!
|
# installations. I am too lazy to always do this by hand!
|
||||||
|
|
||||||
# Loop with the users
|
# Loop with the users
|
||||||
for user in mikaela matti tommi tiina nenne lena
|
for user in mikaela matti tommi tiina nenne anneli
|
||||||
do
|
do
|
||||||
# To see that it works
|
# To see that it works
|
||||||
echo "Current user: $user"
|
echo "Current user: $user"
|
||||||
# Create the user & homedir if it doesn't exist
|
# Create the user & homedir if it doesn't exist
|
||||||
useradd -m $user
|
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)
|
# Set user & group as the owner (in case fresh install with old /home)
|
||||||
chown -R $user:$user /home/$user
|
chown -R $user:$user /home/$user
|
||||||
# Remove password & force new to be given during first login
|
# Remove password & force new to be given during first login
|
||||||
|
Loading…
Reference in New Issue
Block a user