9.3.5. Configuring Virtualization Host sudo
Previous Step in Preparing a Red Hat Enterprise Linux Host
Summary
The Red Hat Enterprise Virtualization Manager makes use of sudo to perform operations as the root on the host. The default Red Hat Enterprise Linux configuration, stored in /etc/sudoers, contains values that allow this. If this file has been modified since Red Hat Enterprise Linux installation these values may have been removed. This procedure provides steps to verify that the required entry still exists in the configuration, and add the required entry if it is not present.
Procedure 9.5. Configuring Virtualization Host sudo
Log in
Log in to the virtualization host as therootuser.Run visudo
Run thevisudocommand to open the/etc/sudoers# visudo
Edit sudoers file
Read the configuration file, and verify that it contains these lines:# Allow root to run any commands anywhere root ALL=(ALL) ALL
If the file does not contain these lines, add them and save the file using the VIM:wcommand.Exit editor
Exitvisudousing the VIM:qcommand.
Result
You have configured sudo to allow use by the root user.