LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-06-2006, 05:07 PM   #1
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
Xubuntu - sudo stopped working


K, i installed xubuntu version 6.06 2 days ago and up until 10 mins ago it worked fine. I added a new user and changed my /etc/fstab and after I restarted sudo no longer seems to work. Now the two actions before hand may not have anything to do with it but i said i may as well mention them.

Here's a little example of what i mean
Code:
nnp@torvalds:~$ sudo cat /etc/fstab
Password:
nnp@torvalds:~$
And yes, the password is correct. Im completely stumped, i've never seen anything like this before.

Later,
NNP
 
Old 06-06-2006, 07:33 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
Try booting into recovery mode (which will make you root) and editing your /etc/sudoers and /etc/group files to match what you see here. Substitute nnp for firstuser, of course:
Code:
cp /etc/sudoers /etc/sudoers_broken
cp /etc/group /etc/group_broken
nano /etc/sudoers
nano /etc/group
 
Old 06-07-2006, 03:53 AM   #3
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 356

Rep: Reputation: 31
aysiu, not totally related to this post but do you know whether you can still su root in dapper?
i used to be able to sudo or su root - and then keep that terminal session open as root..
cheers
 
Old 06-07-2006, 01:37 PM   #4
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
hmm, i appear to have gotten myself removed from the admin group and all others bar users. Easily solved via usermod.

Cheers,
NNP
 
Old 06-08-2006, 03:11 AM   #5
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 356

Rep: Reputation: 31
yeah i have just opted to use the 'root' terminal in system tools - does the trick
 
  


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
Xubuntu - 'Applications' menu stopped responding NNP Ubuntu 3 06-06-2006 05:08 PM
Ubuntu 6.06 - changed /etc/hostname and now sudo is not working. morrolan Linux - Newbie 3 06-01-2006 04:10 PM
sudo not working wonglik Ubuntu 6 01-28-2006 09:14 AM
sudo not working hongman Linux - Newbie 2 02-26-2005 02:47 PM
su stopped working bulldogzerofive Linux - Software 5 01-17-2005 02:05 AM


All times are GMT -5. The time now is 10: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