added user and wheel

This commit is contained in:
Afonso Franco 2023-01-12 20:12:46 +00:00
parent f1267a8b41
commit b276220802
Signed by: afonso
GPG key ID: C459E0BB3DCEE899
2 changed files with 29 additions and 0 deletions

21
create_user.sh Normal file
View file

@ -0,0 +1,21 @@
create_user(){
useradd -m afonso
echo 'Insert password for user afonso'
passwd afonso
}
enable_wheel_group(){
sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
}
add_user_to_wheel() {
usermod -aG wheel afonso
}
init(){
create_user
enable_wheel_group
add_user_to_wheel
}
init

8
entrypoint.sh Normal file → Executable file
View file

@ -0,0 +1,8 @@
init(){
source create_user.sh
source config_changes.sh
source pacman.sh
source install_yay.sh
source aur.sh
source xmonad_xmobar.sh
}