9.3.5. Configuring Virtualization Host sudo

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

  1. Log in

    Log in to the virtualization host as the root user.
  2. Run visudo

    Run the visudo command to open the /etc/sudoers
    # visudo
  3. 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 :w command.
  4. Exit editor

    Exit visudo using the VIM :q command.
Result
You have configured sudo to allow use by the root user.