Added almost everything

This commit is contained in:
Afonso Franco 2023-01-29 02:32:19 +00:00
parent fca3b93dd5
commit 03a9749b46
Signed by: afonso
GPG key ID: C459E0BB3DCEE899
15 changed files with 135 additions and 0 deletions

21
1-initial/create_user.sh Executable 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