Configuring password-less sudo privileges for user account on Linux host
You can add a Linux host to an IMS or move it to another IMS using a user account that does not belong to root group, provided that the user account has sudo privileges to run the following commands without requiring a sudo password:
/bin/rpm
/opt/VRTSsfmh/bin/perl
Refer to the sample sudo configuration entry below for a user account named user1: user1 ALL=(root) NOPASSWD: /bin/rpm,/opt/VRTSsfmh/bin/perl
Note:
Ensure that the sudo binary path is included in the system PATH environment.
If the user account is part of a group for which sudo configuration is defined, the corresponding sudo configuration section for that group should have an entry for that user account to run commands with NOPASSWD label.
Versions like Linux RHEL 6.8, RHEL 7.2 and Centos 6.7, by default enable the requiretty property in the sudo configuration. This property must be disabled to allow running commands using sudo without a password prompt. To disable the property, comment the line Defaults requiretty in the sudo configuration. A sudo user (in case of linux workloads) requires the sudo package version to be minimum 1.7.8.