LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-04-2011, 08:25 AM   #1
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
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........
 
Old 01-04-2011, 09:20 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,989

Rep: Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672
Quote:
Originally Posted by rahulkya View Post
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-----).
 
Old 01-04-2011, 09:20 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
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.
 
Old 01-04-2011, 09:45 AM   #4
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Original Poster
Rep: Reputation: 33
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
 
Old 01-04-2011, 10:10 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
Ok, are you sure when you run "sudo" you are really getting /usr/bin/sudo? Is there anything in /var/log/syslog?
 
Old 01-04-2011, 12:26 PM   #6
ifranklin
Member
 
Registered: May 2010
Location: Nairobi, Kenya
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 3
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!!!

Last edited by ifranklin; 01-04-2011 at 12:28 PM.
 
Old 01-04-2011, 02:05 PM   #7
orgcandman
Member
 
Registered: May 2002
Location: dracut MA
Distribution: Ubuntu; PNE-LE; LFS (no book)
Posts: 594

Rep: Reputation: 102Reputation: 102
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.
 
Old 02-21-2011, 04:25 PM   #8
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Original Poster
Rep: Reputation: 33
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorry, sudo must be setuid root kurtdriver Fedora 6 10-22-2008 08:47 PM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 06:15 PM
sudo stopped working: "must be setuid root" quincy_the_penquin Linux - Software 4 04-30-2007 07:37 AM
How to setuid root abridge Linux - Newbie 4 04-06-2005 04:59 PM
Userhelper must be setuid root leroux Linux - Newbie 9 03-10-2005 02:42 AM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration