LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-04-2007, 08:36 AM   #1
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Rep: Reputation: 15
sudo not working in gutsy


running a new install of 7.10 and trying to use "sudo" for various admin tasks on the command line and gui:

When I installed I created one user account and password. When I try to use the "sudo" command it prompts me for a password which I enter. I get various responses such as "Sorry, user <name> may not run sudo on gutsy." Other times it just returns to the prompt with no other effects at all.

Similarly, when using kpackage and trying to add repositories I get a password request which is not validated. Other admin tasks in the GUI yield similar results.

If I have somehow managed to screw up the system can anyone tell me how to put it straight without a major re-install

IK
 
Old 12-04-2007, 08:53 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Can you access "System Settings" >> "User Management" at all? You may want to make sure your user is part of the admin. Also, how does your /etc/sudoers file look like? Here is mine:

Quote:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Defaults

Defaults !lecture,tty_tickets,!fqdn

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
Just so you know, you are not the only one having this problem, even in a fresh installation. I didn't have this problem as of yet though
 
Old 12-04-2007, 10:36 AM   #3
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Original Poster
Rep: Reputation: 15
Many thanks for reply, Mega Man X -

Well of course I can't actually see my sudoers file as sudo doesn't work and I don't have read permission!!!

I can't even find the "user management " you refer to.

It's all most frustrating. Seems that Ubuntu has now gone too far in trying to prevent hackers from meddling. I've never liked the sudo idea and much prefer to use su with a proper root account.

IK
 
Old 12-04-2007, 11:19 AM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
That is sad to hear ikarus . Do you have the same problem booting into safe mode? Because if you can boot into safe mode, you could try fixing the sudoers file or adding a new user.

As a last resort, you could boot up your Ubuntu Live/Install disk, mount your ubuntu partition and try to fix it from there, hopefully.
 
Old 12-04-2007, 09:35 PM   #5
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
You can fix sudo by following these instructions
 
Old 12-04-2007, 11:31 PM   #6
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Original Poster
Rep: Reputation: 15
Excellent and many thanks to both of you. I managed to use recovery mode successfully. My user was missing from the group file and adding this has not only fixed the sudo problem but has provided more access to programs in the "system,admin" menu as well.

All seems good at the moment so now off to add repositories and customise generally.

Cheers
IK
 
  


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
Wireless not working Ubuntu Gutsy (7.10) JMC8501 Linux - Laptop and Netbook 38 10-30-2008 06:23 AM
Brother printer not working after Gutsy upgrade camiguin Linux - Hardware 29 02-04-2008 08:54 AM
LXer: Ubuntu Gutsy With ExpressCard - Working Options LXer Syndicated Linux News 0 11-06-2007 05:40 PM
sleep and hibernate not working on ThinkPad T60 with Ubuntu 7.10 (Gutsy Gibbon) CharlieBucket Linux - Laptop and Netbook 4 10-10-2007 09:18 AM
LXer: Ubuntu 7.10 (Gutsy Gibbon) Release Dates and Mark Shuttleworth About Gutsy LXer Syndicated Linux News 0 04-12-2007 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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