Sudoers entry not working on Solaris (4371172)
Sudoers entry not working on Solaris
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:
/sbin/su (This is actually a link to /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.
Use the full path to su when running the sudo command:
sudo /bin/su - user1
Add the path to the secure_path variable in sudoers.
Defaults secure_path = /bin
© 2023 One Identity LLC. ALL RIGHTS RESERVED.
Termini di utilizzo