Configuring sudo access to users

Use this information to configure sudo access to the users who can run Cloud Application Business Insights installation.

Before you begin

If needed, create a user, and set the password to assign root privileges. Run the command as root user.
useradd <username>

Procedure

  1. To enable sudo for the username on RHEL, add the username to the wheel group. Run the command as root user.
    usermod -aG wheel <username>
  2. As a superuser or administrator, run the visudo to edit the /etc/sudoers file. Make sure that the lines are not commented.
    visudo
    It opens the /etc/sudoers file in a text editor.
    ## Allow root to run any commands anywhere
    root        ALL=(ALL)       ALL
    root ALL=(ALL) NOPASSWD:EXEC:ALL
    
    ## Allows members of the 'sys' group to run networking, software,
    ## service management apps and more.
    # %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
    
    ## Allows people in group wheel to run all commands
    %wheel        ALL=(ALL)       ALL
    
    ## Allows people in group wheel to run all commands without password
    %wheel ALL=(ALL:ALL) NOPASSWD:ALL
    
  3. Save the file and exit.
  4. Verify that the new user is available in wheel group with these commands:
    grep 'wheel' /etc/group
    
    The following output must appear.
    wheel:x:10:<username>
  5. Verify that the new user can run the installation of Cloud Application Business Insights as sudo by using these commands:
    1. Switch to the new user.
      su – <username>
      
    2. Run the Cloud Application Business Insights installation script.
      sudo ./install