LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 07: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, 08:20 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 08:20 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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, 08: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

Original Poster
Blog Entries: 3

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, 09:10 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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, 11:26 AM   #6
ifranklin
Member
 
Registered: May 2010
Location: New Jersey, USA
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 4
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 11:28 AM.
 
Old 01-04-2011, 01:05 PM   #7
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
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.
 
1 members found this post helpful.
Old 02-21-2011, 03: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

Original Poster
Blog Entries: 3

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



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 07: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 05:15 PM
sudo stopped working: "must be setuid root" quincy_the_penquin Linux - Software 4 04-30-2007 06:37 AM
How to setuid root abridge Linux - Newbie 4 04-06-2005 03:59 PM
Userhelper must be setuid root leroux Linux - Newbie 9 03-10-2005 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration