LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-13-2006, 07:29 PM   #1
Conjurer
Member
 
Registered: Oct 2005
Distribution: Ubuntu, ElemntaryOS, Linux Mint, openSUSE, Xubuntu
Posts: 56

Rep: Reputation: 15
Question Problem: Root enabled, sudo disabled


As the topic title suggests, something has gone slightly wrong during my install of Ubuntu 5.10. Question is, can I correct it without having to re-install?

su to root functions as any other distro; I am asked for my root password, and upon successfully entering it, I am logged in as root.

sudo, while installed and executable ALWAYS fails to recognize my root password.

Speaking of passwords - considering what I had heard about Ubuntu - and continue to hear about it - I find it a bit odd that I was asked to specify both root and user passwords during the install.
 
Old 01-13-2006, 07:33 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
for sudo you should have to enter your USER password, not the root password. And in the event that doesn't work, edit the sudoer file by typing visudo as root. Then add a line at the bottom:

yourusername ALL=(ALL) ALL

Of course, to use sudo correctly, you should only give yourself permission to do certain things, but that's way more complex than just letting you use sudo for everything...
 
Old 01-13-2006, 08:12 PM   #3
Conjurer
Member
 
Registered: Oct 2005
Distribution: Ubuntu, ElemntaryOS, Linux Mint, openSUSE, Xubuntu
Posts: 56

Original Poster
Rep: Reputation: 15
Aha! The user pws for sudo - how very devious...

As nothing happened when I tried to launch apps such as Synaptic using sudo, I tried editing the sudoers file as you suggested. Now Synaptic and the like work - but I am never asked for a password!

--EDIT: Sorry, I was too quick on that last issue. A reboot sorted it out.

Last edited by Conjurer; 01-13-2006 at 08:26 PM.
 
Old 01-14-2006, 01:52 AM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What probably happened is that the sudo config file (somewhere) has a default time where once you insert the password, then for, say, 5 minutes you won't need to enter it again. After you haven't used sudo for 5 minutes, it'll prompt you for your password again.
 
Old 01-15-2006, 12:55 AM   #5
Conjurer
Member
 
Registered: Oct 2005
Distribution: Ubuntu, ElemntaryOS, Linux Mint, openSUSE, Xubuntu
Posts: 56

Original Poster
Rep: Reputation: 15
Yes, I have since learned of the time limit on sudo sessions - but thanks anyway!
 
  


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
Root and all user accounts disabled mht17 Linux - Newbie 3 05-10-2011 06:23 PM
Sorry, sudo must be setuid root kurtdriver Fedora 6 10-22-2008 07:47 PM
How to hack sudo to become root lewkh Linux - Security 5 01-08-2005 06:20 AM
Sudo, su and root lesleyb Linux - Security 3 10-18-2004 01:36 PM
why is "enabled hardware 3d acceleation" disabled? spyghost Linux - Hardware 4 07-18-2003 08:00 AM

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

All times are GMT -5. The time now is 05:53 AM.

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