mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 18:52:46 +01:00
bash/addusers: Arch!
This commit is contained in:
parent
1e1814c08d
commit
0f94c566e6
6
bash/addusers
Normal file → Executable file
6
bash/addusers
Normal file → Executable file
@ -4,7 +4,7 @@
|
||||
# installations. I am too lazy to always do this by hand!
|
||||
|
||||
# Loop with the users
|
||||
for user in matti tommi tiina nenne lena
|
||||
for user in mikaela matti tommi tiina nenne lena
|
||||
do
|
||||
# To see that it works
|
||||
echo "Current user: $user"
|
||||
@ -19,9 +19,9 @@ do
|
||||
done
|
||||
|
||||
# And next sudoers
|
||||
for sudoer in matti tommi tiina
|
||||
for sudoer in mikaela matti tommi tiina
|
||||
do
|
||||
# Add the user to sudo group (as they are administrator)
|
||||
echo "Current sudoer: $sudoer"
|
||||
usermod -a -G sudo $sudoer
|
||||
usermod -a -G wheel $sudoer
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user