Submitting forms on the support site are temporary unavailable for schedule maintenance. If you need immediate assistance please contact technical support. We apologize for the inconvenience.
The following entry has been configured in the sudoers file on a Solaris system: admin ALL= NOPASSWD: /bin/su - user1
However the user is prompted for a password when running the following command: sudo su - user1
원인
The su command can be found in three different locations on Solaris: --------------------- /bin/su /sbin/su (This is actually a link to /bin/su) /usr/bin/su ---------------------
Sudo will try to find the location of the su command if the full path has not been used. It is possible that it will find the location that is not configured in the sudoers file.
해결 방안
RESOLUTION 1:
Use the full path to su when running the sudo command: sudo /bin/su - user1
RESOLUTION 2:
Add the path to the secure_path variable in sudoers. E.g: Defaults secure_path = /bin