LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-11-2007, 01:51 AM   #1
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
sudo - root password not working


su works fine. sudo simply rejects my password 3 times on Slackware.

While googleing, I have found this on a faq:
Quote:
Q) When sudo asks me for my password it never accepts what I enter even
though I know I entered my password correctly.
A) If your system uses shadow passwords, it is possible that sudo
didn't detect this. Take a look at the generated config.h file
and verify that the C function used for shadow password lookups
was detected. For instance, for SVR4-style shadow passwords,
HAVE_GETSPNAM should be defined (you can search for the string
"shadow passwords" in config.h with your editor). Note that
there is no define for 4.4BSD-based shadow passwords since that
just uses the standard getpw* routines.
Don't all Linux distributions use shadow passwords?
config.h, from what I know, is a C/C++ library file, which I should have only when I compile it. As sudo was installed by default, I don't have a config.h...
Also, how can I find out what algorythm Slack uses to encript passwords in shadow?

And, the most important question, any idea what I could do to get sudo to work?

Thanks for reading. Any info/idea is welcomed.
 
Old 03-11-2007, 03:22 AM   #2
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
instead of using the root user password, try your normal user password.
sudo is super user do, means the user is a member of the sudoers group, and their password will allow root tasks.

you only need to enter root password if you are using switch user [ su ] to become root.
 
Old 03-11-2007, 03:45 AM   #3
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Original Poster
Rep: Reputation: 30
Hmm, how come I haven't thought of that? Thanks
I entered my password and it told me the user wasn't in the sudoers list, but I edited /etc/sudoers and now it works fine
 
Old 03-11-2007, 01:01 PM   #4
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
I'm pleased that you got your sudo working, but, at the risk of sounding condescending, I would like to clear up a misunderstanding about the program.

Quote:
Originally Posted by Jaqui
instead of using the root user password, try your normal user password.
sudo is super user do, means the user is a member of the sudoers group, and their password will allow root tasks.

you only need to enter root password if you are using switch user [ su ] to become root.
This is not strictly true, although it can be.

Sudo is very configurable and it can require a root password, a users password or no password depending on how the sudoers file is configured. It can also be used to run commands as any other user, not just as root (so maybe "switch user do" would be more appropriate?).

You also don't need to be a member of any particular group to use sudo, although that may be the way it's set up in your distribution. You can specify what any particular user or group is allowed to do in the sudoers file.

Anyway, I just wanted to point out what a versatile program sudo is, and now that I have, I'll go.
 
  


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
SuSE93 Root password rejected from normal user mode (No Sudo, No YaST) Peacepunk Suse/Novell 2 02-11-2007 06:34 PM
Root password not working... neilthereildeil Linux - General 5 05-27-2006 01:55 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 01:22 PM.

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