Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-11-2007, 04:30 PM   #1
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


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.

root@jingle:/etc/pam.d# su mm
reenter password:
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:

# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      /lib/security/
auth        sufficient    /lib/security/ try_first_pass nullok
auth        required      /lib/security/ 
account     required      /lib/security/

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



Last edited by malo_umoran; 06-11-2007 at 04:31 PM.
Old 06-11-2007, 05:27 PM   #2
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/

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.

auth            sufficient
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth           sufficient trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth           required use_uid
auth            include         system-auth
account         sufficient uid = 0 use_uid quiet
account         include         system-auth
password        include         system-auth
session         include         system-auth
session         optional


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
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 > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration