09Sudo - amagerard/TemplateVM GitHub Wiki

RedHat/TemplateVM.

1- Installation 2- Network 3- Firewall 4- Selinux
5- Logs 6- Certificates 7- Mail 8- PassphraseSSH
9- Sudo 10- GnomeShell 11- CloneVM 12- Volume
13- Troubleshoot

9. Sudo root.

9.1 principle.

The user <username> does not know the root password.
The root password is in a safe.

9.2 Installation.

sudo is already installed with Red Hat.
dnf install sudo if not installed.
User must not be in group wheel —> cat /etc/group| grep wheel.
Open visudo.
visudo
Add or modify.

## User Aliases  
User_Alias   SUPER_ROOT = <username>  
#  
#  
## Allow root to run any commands anywhere  
SUPER_ROOT  ALL=(ALL)NOPASSWD:     ALL  

The user <username> no longer needs the root password.
It will type sudo su to be root.

⚠️ **GitHub.com Fallback** ⚠️