added user and wheel
This commit is contained in:
parent
f1267a8b41
commit
b276220802
2 changed files with 29 additions and 0 deletions
21
create_user.sh
Normal file
21
create_user.sh
Normal 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
8
entrypoint.sh
Normal file → Executable 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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue