Operating System - HP-UX
1824858 Members
3779 Online
109674 Solutions
New Discussion юеВ

sudo: must be setuid root

 
SOLVED
Go to solution
tom quach_1
Super Advisor

sudo: must be setuid root

Hi All,

have anyone seen this message before.
i've setup and used sudo for my test and production for 2 years now.
suddenly, on my test server (HP-UX 11.11)
the sudo does not work anymore. tried to compare with my production but could not figure it out what was wrong?
the sudoers permission is correct, compared with production.

this was the error
$sudo cancel hp5000-862
sudo: must be setuid root

thank in advance for your help.
Tom

5 REPLIES 5
Yogeeraj_1
Honored Contributor

Re: sudo: must be setuid root

Hi tom,

can you verify your $PATH?

If you have '.' in your $PATH before the directory containing sudo, this problem can also arise..

please check

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Dennis Handly
Acclaimed Contributor
Solution

Re: sudo: must be setuid root

Can you list the permissions on sudo?
It probably should look something like this:
-rwsr-xr-x root bin
tom quach_1
Super Advisor

Re: sudo: must be setuid root


Thank you Dennis and Yogeerai,

the permission was -rwxr-xr-x on
/usr/local/bin/sudo
changed it to
-rwsr-xr-x root bin
and it works
on my production the permission is
---s--x--x on /usr/local/bin/sudo

Thanks again for your help.
Regards,
Tom
tom quach_1
Super Advisor

Re: sudo: must be setuid root

Thank you!
Dennis Handly
Acclaimed Contributor

Re: sudo: must be setuid root

---s--x--x is probably fine for real paranoid admins. :-)
But there is no reason not to let root read it.