http://blog.mc-thias.org/?title=where-is-the-sudoers-file-on-solaris-10&more=1&c=1&tb=1&pb=1
Sudo package SFWsudo may be downloaded from here: http://www.sunfreeware.com/S10U10-SPARC-files.html
after the installation you might need to set s bit from the root account:
chmod u+s /opt/sfw/bin/sudo
Where is the sudoers file on Solaris 10
sudo is available from the SFWsudo package on Solaris 10.
Wanting to use it, a /etc/sudoers file has been set but still leading to the following error
user NOT in sudoers
Hopefully, truss will help ;-)
root@server:/# truss -o /tmp/output sudo ls
The /tmp/output file is answering the enigma:
root@server:/# grep sudoers /tmp/output
lstat("/opt/sfw/etc/sudoers", 0xFFBFFB28) = 0
open("/opt/sfw/etc/sudoers", O_RDONLY) = 4
The sudoers file to edit is in /opt/sfw/etc
i prefer this way :
# grep sudoers /var/sadm/install/contents
/usr/local/etc/sudoers f none 0440 root root 665 56168 1189381906 SMCsudo
/usr/local/man/man4/sudoers.4 f none 0644 bin bin 59979 45038 1189381906 SMCsudo
|