LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-21-2006, 12:38 PM   #1
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Rep: Reputation: 15
problem with sudo


I made a mistake while doing chown, I accidently used the -L function allowing the chown syslinks, shortly after I executed the command, the machine froze and after a reboot sudo doesn't work.

when sudo'ing I get

sudo: must be setuid root

how d I fix this?

also, how do I undo chown -L as some programs are not working ans internet on that machine has stopped too.

I'm using ubuntu 6.06
thank you
 
Old 08-21-2006, 01:28 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
chown root:root /usr/bin/sudo
chmod 4111 /usr/bin/sudo
 
Old 08-21-2006, 01:35 PM   #3
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by w3bd3vil
chown root:root /usr/bin/sudo
chmod 4111 /usr/bin/sudo
Thanks for the reply, but for this I get the following

sudo: must be setuid root
 
Old 08-21-2006, 01:36 PM   #4
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
since you cant become root in here, you will have to boot into single user mode and do that.
 
Old 08-21-2006, 07:14 PM   #5
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
okay i've done that, now a new message comes up when trying to use sudo


sudo: /etc/sudoers is owned by uid 1000, should be 0


I tried to use the single user mode again to correct this but it didn't work. I got this message

chown: cannot access '/usr/sudoers': no such file or directory


So i'm guessing I need to create this now?
 
Old 08-21-2006, 07:22 PM   #6
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
sudo: /etc/sudoers
access '/usr/sudoers'

its /etc/sudoers
 
Old 08-24-2006, 09:49 AM   #7
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
Oh sorry about that, I think I was more tired than I thought, it's working now. thank you.
 
  


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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Sudo Problem shooters Linux - General 2 12-14-2005 10:12 PM
Problem with sudo SwannAnderson Linux - Newbie 5 10-03-2005 07:10 PM
sudo problem drigz Linux - Software 4 06-21-2004 03:46 PM
Problem with sudo punx120 Linux - Software 0 05-08-2004 10:43 AM


All times are GMT -5. The time now is 11:14 AM.

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