SUDO command only works as root (Solaris 10)

commandpermissionsrootsolaris-10sudo

After installing sudo in the system i am unable tu run sudo as a non-root user, when i try to execute any command i get:

/usr/local/bin/sudo: cannot execute

if i edit /etc/passwd to use a different shell i get:

/usr/local/bin/sudo: permission denied

the sudoers file seems to be correctly configured since the output of "sudo -l -U user" shows the user is able to execute only the commands i want it to use.

ls -l output is:

-rwsr-xr-x 1 root root 205396 Oct 8 2010 /usr/local/bin/sudo

Best Answer

The problem was on the folder: /usr/local/bin It did not have the right permissions, once I corrected this "sudo" ran without problems.