Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old July 20th, 2006   #1
beesforbreath
First Cup of Ubuntu
 
Join Date: Jul 2006
Beans: 10
sudo: must be setuid root

I'm unable to perform any sudo operations because of this error message
Quote:
must be setuid root
I've read through the forums and I believe the issue is with the fact that I chowned the /usr/ directory. My question is: how do I change it back to root so I can use sudo?
beesforbreath is offline   Reply With Quote
Old July 28th, 2006   #2
lprimm
First Cup of Ubuntu
 
lprimm's Avatar
 
Join Date: Jun 2006
Location: Austin, TX
Beans: 1
Ubuntu 6.10 Edgy
Send a message via AIM to lprimm
Re: sudo: must be setuid root

Yeah - I did the same thing... did you figure/find a way to fix it? (other than reinstalling....)
lprimm is offline   Reply With Quote
Old July 28th, 2006   #3
TheBlackNoodle
5 Cups of Ubuntu
 
Join Date: Mar 2006
Beans: 33
Re: sudo: must be setuid root

If the problem is just that you chowned /usr, try rebooting with the Ubuntu Live CD. Open a terminal and do the following...

sudo mkdir /mnt/ubuntu
sudo mount /dev/hda1 /mnt/ubuntu
sudo chown -r root /mnt/ubuntu/usr
sudo umount /mnt/ubuntu

I'm assuming your install is on /dev/hda1. If it's not, you'll have to change that part to match your setup.

But you should be able to do all the maintenance you need from the Live CD.

If the problem is not only that you chowned /usr, I can't guarantee this will work.
TheBlackNoodle is offline   Reply With Quote
Old September 5th, 2006   #4
BLTicklemonster
Tall Cafè Ubuntu
 
BLTicklemonster's Avatar
 
Join Date: Oct 2005
Location: Rome, Ga
Beans: 2,614
Ubuntu 8.10 Intrepid Ibex
Send a message via MSN to BLTicklemonster Send a message via Yahoo to BLTicklemonster
Re: sudo: must be setuid root

I went into the recovery console (reboot, and chose recovery console in case you didn't catch on to how to do that), and typed

ls -l usr/bin/sudo

and the readout looked fine, like this

Code:
-rwsr-xr-x 1 root root 93844 2006-05-17 08:41 /usr/bin/sudo
but I knew better...


so I put

chwon root:root /usr/bin/sudo
then
chmod 4755 /usr/bin/sudo

then I typed

reboot


and I now have sudo again.
__________________
Al Gore didn't invent the Internet, but he did make up global warming.

-David Rockefeller, March 08, 2009
BLTicklemonster is offline   Reply With Quote
Old September 6th, 2006   #5
ferd
A Carafe of Ubuntu
 
Join Date: Sep 2006
Beans: 89
Lightbulb Re: sudo: must be setuid root

Thank you so much. I had struggled with this for days and did finally reinstall. This will save me 4 hours if I am ever dumb enough to chown usr again.
ferd is offline   Reply With Quote
Old September 11th, 2006   #6
Naikei
First Cup of Ubuntu
 
Join Date: Sep 2006
Location: Hull and Leeds
Beans: 11
Ubuntu 6.10 Edgy
Send a message via MSN to Naikei Send a message via Skype™ to Naikei
Talking Re: sudo: must be setuid root

Quote:
Originally Posted by BLTicklemonster View Post

ls -l usr/bin/sudo

chown root:root /usr/bin/sudo

chmod 4755 /usr/bin/sudo

reboot
Thankyou so much . I am one tired, happy, sleeping without "WHAT COULD IT BE!?" tonight, user. Because of you.
Haha.
Cheers
Naikei
Naikei is offline   Reply With Quote
Old October 28th, 2006   #7
taff99
First Cup of Ubuntu
 
Join Date: Oct 2006
Location: Castell Nedd, Wales, UK
Beans: 2
Xubuntu 6.06 Dapper
Re: sudo: must be setuid root

Thanks for the advice, it work for me to.

Shame I let my chmod run from / without noticing it ..

I now have another message up after I try SUDO

Sudo: /etc/sudoers is mode 0777, should be 0440

I also have a nice message at login about $HOME...

A nice evening ahead ......

Thanks
taff99 is offline   Reply With Quote
Old August 20th, 2007   #8
zeekay
5 Cups of Ubuntu
 
Join Date: Apr 2007
Beans: 26
Ubuntu 7.04 Feisty Fawn
Send a message via MSN to zeekay
Re: sudo: must be setuid root

Quote:
Originally Posted by Naikei View Post
Thankyou so much . I am one tired, happy, sleeping without "WHAT COULD IT BE!?" tonight, user. Because of you.
Haha.
Cheers
Naikei
That solved for me too. Thanks.
zeekay is offline   Reply With Quote
Old November 18th, 2007   #9
hooah212002
First Cup of Ubuntu
 
hooah212002's Avatar
 
Join Date: Nov 2007
Beans: 9
Re: sudo: must be setuid root

Quote:
Originally Posted by BLTicklemonster View Post
I went into the recovery console (reboot, and chose recovery console in case you didn't catch on to how to do that), and typed

ls -l usr/bin/sudo

and the readout looked fine, like this

Code:
-rwsr-xr-x 1 root root 93844 2006-05-17 08:41 /usr/bin/sudo
but I knew better...


so I put

chwon root:root /usr/bin/sudo
then
chmod 4755 /usr/bin/sudo

then I typed

reboot


and I now have sudo again.

Worked for me.....the second time. The first time I just typed in exit and I guess it didnt save changes. Thanks BLTicklemonster
hooah212002 is offline   Reply With Quote
Old May 2nd, 2008   #10
coolnezz
5 Cups of Ubuntu
 
Join Date: Dec 2007
Location: San Francisco, CA 94112
Beans: 19
Re: sudo: must be setuid root

Thanks! It worked for me.


Quote:
Originally Posted by BLTicklemonster View Post
I went into the recovery console (reboot, and chose recovery console in case you didn't catch on to how to do that), and typed

ls -l usr/bin/sudo

and the readout looked fine, like this

Code:
-rwsr-xr-x 1 root root 93844 2006-05-17 08:41 /usr/bin/sudo
but I knew better...


so I put

chwon root:root /usr/bin/sudo
then
chmod 4755 /usr/bin/sudo

then I typed

reboot


and I now have sudo again.
coolnezz is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:28 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry