Follow

Interset user does not have permission to execute commands

Issue

I am not able to log into a shell or execute any command as the Interset user.

Cause

The cause is generally because the Interset user is not granted shell access, or granted sudo permissions

Resolution Steps

There are two steps to  in an attempt to resolve this:

  1. Step 1 - Auto configuration
    • Executes a series of scripts to auto-configure and grants the interse user to shell, ssh, and sudo permissions
  2. Step 2 - Manual configuration
    • Manually configure/grant access interset user to shell, ssh and sudo permissions

Step 1 - Auto configuration

  1. SSH to the affected nodes as a user that has sudo permissions
  2. Type in the following command to grant the interset user shell, ssh, and sudo permission:
    • sudo /opt/interset/bin/sysprep/scripts/user_allow_shell_login && sudo /opt/interset/bin/sysprep/scripts/user_allow_ssh_login && sudo /opt/interset/bin/sysprep/scripts/user_allow_sudo
  3. Once the scripts complete successfully, please attempt to:
    • SSH to affected nodes as the Interset User
    • execute a command that requires sudo privileges
  4. If the command from step 2 cannot be executed due to a restriction, please continue to Step 2 - Manual configuration.

Step 2 - Manual configuration

This step is only needed if Step 1 fails, or is restricted from being executed.

  1. Type in the following command to ensure the interset-user.rpm is installed on all affected system(s):
    • sudo yum list installed | grep interset-user
      • NOTE: IF the interset-user.rpm user is not installed, please type in the following command to install the interset-user, and set the password to "interset":
        • sudo yum install -y interset-user && sudo echo "interset" | passwd --stdin interset
  2. Type in the following and validate if the interset user has /bin/bash option set in the /etc/passwd file:
    • sudo cat /etc/passwd | grep interset
  3. The output from the command above should be similar to the following:
    • interset:x:xxxx:xxxx:Interset Software, Inc:/home/interset:/bin/bash
  4. IF valid, please continue to the step 8
  5. IF NOT valid, please type in the following command to edit the /etc/passwd file:
    • sudo vi /etc/passwd
  6. Locate the line that starts with interset, and ensure :/bin/bash is set for the interset user.
  7. Once completed, save changes and exit the file.
  8. Type in the following command to navigate to the /etc/sudoers.d directory if the interset file exists:
    • cd /etc/sudoers.d
  9. Type in the following to list the files in the directory:
    • ls -al
  10. The following file should exist in the directory with the following configuration:
    • -r--r-----. 1 root root 34 XXX X XX:XX interset
  11. If the file does not exist, type in the following command to create the interset file:
    • sudo vi interset
  12. In the interset file, enter in the following:
    • %interset ALL=(ALL) NOPASSWD: ALL
  13. Once added, save changes and exit the file.
  14. Type in the following to set permission and change ownership of the interset file:
    • sudo chmod 440 interset && sudo chown root:root interset
  15. Once shell, ssh, and sudo permissions are granted, please attempt to:
    • SSH to affected nodes as the Interset User
    • execute a command that requires sudo privileges

Applies To

  • Interset 5.4.x or higher
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk