LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-09-2009, 01:35 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: modified MEPIS 11, heavily modified antiX
Posts: 1,523

Rep: Reputation: 50
my sudo password is not the root password


I just tried to sudo something, and was asked for a sudo password. What?--I thought that was always the root password; it apparently is not, because the root password was rejected. I tried entering my user password; that time the console said what I expected: "Sorry, user josh is not allowed to execute '/usr/bin/apt-get build-dep virtualbox' as root on mepis1." Why would my sudo password be different from the root password?

I did just reinstall MEPIS. Could a mistake during installation have caused this?

Since I can't sudo until I find out the password, I can only su - . I preserved /home and then tried t

Last edited by newbiesforever; 08-09-2009 at 01:52 PM.
 
Old 08-09-2009, 01:44 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,845

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
maybe if you actually read the sudo manpage you'd understand what's going on...

Code:
DESCRIPTION
       sudo allows a permitted user to execute a command as
       the superuser or another user, as specified in the
       sudoers file.  The real and effective uid and gid are
       set to match those of the target user as specified in
       the passwd file and the group vector is initialized
       based on the group file (unless the -P option was
       specified).  If the invoking user is root or if the
       target user is the same as the invoking user, no pass‐
       word is required.  Otherwise, sudo requires that users
       authenticate themselves with a password by default
       (NOTE: in the default configuration this is the user’s
       password, not the root password).  Once a user has
       been authenticated, a timestamp is updated and the
       user may then use sudo without a password for a short
       period of time (15 minutes unless overridden in sudo‐
       ers).
 
Old 08-09-2009, 01:47 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Slackware current
Posts: 8,460

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
sudo is the password of said user with sudoer privileges. And su is actually 'switching user' to root.
Just add the user to the admin group
 
Old 08-09-2009, 01:56 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: modified MEPIS 11, heavily modified antiX
Posts: 1,523

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by acid_kewpie View Post
maybe if you actually read the sudo manpage you'd understand what's going on...
Thanks for the tip. And I don't know what "kewpie" means, but I can see why "acid" is part of your ID.

Last edited by newbiesforever; 08-09-2009 at 01:59 PM.
 
Old 01-02-2010, 06:25 PM   #5
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: modified MEPIS 11, heavily modified antiX
Posts: 1,523

Original Poster
Rep: Reputation: 50
I just added myself to the "adm" group with KUser, but that didn't allow me to use sudo. Do I need to restart first?
 
Old 01-02-2010, 06:41 PM   #6
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
Add yourself to the "admin" group for sudo capability. The "adm" group is different.
 
Old 01-02-2010, 06:48 PM   #7
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: modified MEPIS 11, heavily modified antiX
Posts: 1,523

Original Poster
Rep: Reputation: 50
Hmm, I didn't see "admin" in the list. I must have overlooked it.
 
Old 01-02-2010, 09:59 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,442

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
it might be "wheel"

your sudoers file probably says it
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo - root password not working Valkyrie_of_valhalla Linux - Software 3 03-11-2007 01:01 PM
SuSE93 Root password rejected from normal user mode (No Sudo, No YaST) Peacepunk Suse/Novell 2 02-11-2007 06:34 PM
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM
root password doesn't work when I use sudo ... bucovaina78 Linux - Security 5 11-10-2004 02:50 PM
How do I put root Password from code in sudo ? rhawi Programming 8 06-18-2004 12:49 PM


All times are GMT -5. The time now is 03:28 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
Open Source Consulting | Domain Registration