8.6. Configuring Virtualization Host sudo

Summary
The Red Hat Enterprise Virtualization Manager uses 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, then these values may have been removed. This procedure verifies that the required entry still exists in the configuration, and adds the required entry if it is not present.

Procedure 8.4. 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 file.
    # 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 before exiting.
Result
You have configured sudo to allow use by the root user.