LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   sudo:must be setuid root (http://www.linuxquestions.org/questions/linux-software-2/sudo-must-be-setuid-root-854117/)

rahulkya 01-04-2011 08:25 AM

sudo:must be setuid root
 
I am trying to compile the chromeos on my 64bit Ubuntu 10.04...But I am stuck at the following error :-
sudo:must be setuid root

I tried googling but still I am not able to proceed....

Thanks in Advance........

TB0ne 01-04-2011 09:20 AM

Quote:

Originally Posted by rahulkya (Post 4212576)
I am trying to compile the chromeos on my 64bit Ubuntu 10.04...But I am stuck at the following error :-
sudo:must be setuid root

I tried googling but still I am not able to proceed....

Thanks in Advance........

If you did Google this, you'd have found it. The SUDO file must be SUID as root (-rwsr-xr-x), owned by root/root. Sudoers should be 440, owned by root/root (-r--r-----).

AlucardZero 01-04-2011 09:20 AM

The sudo binary must be setuid root. You have to get root privileges somehow to fix it. If you have given root a password on your Ubuntu install, use "su" to become root, then run: chmod 4755 `which sudo`

If your root user does not have a password, then you will need to boot from CD, mount the local file system, and run the above chmod command on the hard drive's sudo binary.

rahulkya 01-04-2011 09:45 AM

I have a root access and i chmod the sudo binary by:-
Quote:

chmod 4755 /usr/bin/sudo
Still getting the same error.
And root also owns the /usr/bin/sudo
Quote:

root@ubuntu:~# ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 148024 2010-06-18 17:07 /usr/bin/sudo

AlucardZero 01-04-2011 10:10 AM

Ok, are you sure when you run "sudo" you are really getting /usr/bin/sudo? Is there anything in /var/log/syslog?

ifranklin 01-04-2011 12:26 PM

i suggest you go to the recovery console (reboot, and chose recovery console in case you don't know how to do that), and type

ls -l /usr/bin/sudo

may bring out something close to this

Quote:

Code:

-rwsr-xr-x 1 root root 93844 2006-05-17 08:41 /usr/bin/sudo
i see you already have something close to this up there >>

Quote:

root@ubuntu:~# ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 148024 2010-06-18 17:07 /usr/bin/sudo
so put

chwon root:root /usr/bin/sudo

then

chmod 4755 /usr/bin/sudo

then type

reboot


and i guess you'll have sudo again.

i hope this helps!!!

orgcandman 01-04-2011 02:05 PM

also,
Code:

ls -l `which sudo`
Code:

chmod 4755 `which sudo`
Code:

chown root:root `which sudo`
Ensure that the system complaining about the sudo command is using the host sudo, and not the client sudo.

Do something like:

Code:

updatedb && locate sudo
as root. See if you have multiple copies, and try to figure out which one is being invoked.

rahulkya 02-21-2011 04:25 PM

I solved the problem...The problem was the file permission of the directory under which I am trying to build chromeOS(from Google)..
I did earlier
Quote:

mkdir chromeos
and solved the problem by:-
Quote:

mkdir -p chromeOS


All times are GMT -5. The time now is 09:39 PM.