1829357 Members
2793 Online
109991 Solutions
New Discussion

Sudo must be setuid root

 
SOLVED
Go to solution
Donald Whitaker
Occasional Contributor

Sudo must be setuid root

I seem to be having some kind of permissions problem with sudo. I have recently installed sudo on a new machine and i get the above setuid root message. Sudo is running out of
/usr/local/bin/sudo and the permissions on the file are as follows:
---s--x--x 1 bin bin 114688 Oct 15 2003 sudo
Thanks for the help.
6 REPLIES 6
Geoff Wild
Honored Contributor
Solution

Re: Sudo must be setuid root

Should be root:root as owner/group.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Patrick Wallek
Honored Contributor

Re: Sudo must be setuid root

Sudo has to be owned by root. The permissions on sudo on my system are:

---s--x--x 1 root root 114688 Oct 15 2003 sudo
Bharat Katkar
Honored Contributor

Re: Sudo must be setuid root

Change permissions of sudo as 555 atleast to be used by normal users.
Try doing this.
# chown 555 sudo

Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: Sudo must be setuid root

sorry .. ignore that one..
You need to know a lot to actually know how little you know
Patrick Wallek
Honored Contributor

Re: Sudo must be setuid root

NO!!!! Do NOT change the permissions for sudo! The permissions you have are EXACTLY correct!

The ownership is the problem!

# chown root:root /usr/local/bin/sudo

The error message is also telling you exactly what the problem is.
Donald Whitaker
Occasional Contributor

Re: Sudo must be setuid root

Thanks everyone for your help.
That took care of it.