LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-11-2007, 04:30 PM   #1
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
"su $user" as root asks for a password


Hi,

Slackware started asking me for a user password when I do "su mm" as a root. I don't have to enter the password, pressing Enter is enough.

Code:
root@jingle:/etc/pam.d# su mm
reenter password:
mm@jingle:/etc/pam.d$
I just pressed Enter after I was asked to "reenter password" and I was logged in as the user "mm".

When I want to login, everything is normal: enter username, press Enter, enter password, press Enter, done.

I checked /etc/pam.d/system-auth:

Code:
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      /lib/security/pam_env.so
auth        sufficient    /lib/security/pam_unix.so try_first_pass nullok
auth        required      /lib/security/pam_deny.so 
account     required      /lib/security/pam_unix.so

password    required      /lib/security/pam_cracklib.so try_first_pass retry=3
password    sufficient    /lib/security/pam_unix.so try_first_pass use_authtok nullok md5 shadow
password    required      /lib/security/pam_deny.so
session     required      /lib/security/pam_limits.so
session     required      /lib/security/pam_unix.so
Any ideas? Am I searching on the right place?

Thanks

M.

Last edited by malo_umoran; 06-11-2007 at 04:31 PM.
 
Old 06-11-2007, 05:27 PM   #2
rhussey
Member
 
Registered: Jun 2007
Distribution: Ubuntu Gutsy, Debian Lenny/Sid
Posts: 31

Rep: Reputation: 15
Hmmm... not sure. I think this might be a problem with your /etc/pam.d/su file. Check for a line like this at the top:
auth sufficient /lib/security/pam_rootok.so

Without that, root will need to enter a password. Here's my su file for reference, although I don't suggest copying it since it may be a different version.

Code:
#%PAM-1.0
auth            sufficient      pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth           sufficient      pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth           required        pam_wheel.so use_uid
auth            include         system-auth
account         sufficient      pam_succeed_if.so uid = 0 use_uid quiet
account         include         system-auth
password        include         system-auth
session         include         system-auth
session         optional        pam_xauth.so
 
  


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 password no good for "software security device?" Rusted Linux - Security 3 04-26-2006 05:00 AM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM
Added a user, now root says "invalid password" gallwapa Linux - Security 20 10-17-2005 04:13 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM
where is the "enter root password or Contrl-D to continue" after FS repair at boot jg167 Red Hat 0 11-17-2004 01:20 AM

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

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