LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-15-2006, 05:38 PM   #1
jyoung4
LQ Newbie
 
Registered: Apr 2006
Location: Minneapolis, Minnesota, USA
Posts: 16

Rep: Reputation: 1
pam_tally doesn't work when a password change is required


When I add pam_tally to the stack in the system-auth file, users who are required to change their passwords immediatly are never given the chance.

My pam application expects to get a PAM_SUCCESS status returned from a pam_authenticate() call even if the user is required to change his password. It then calls pam_acct_mgmt() to check if the password is expired. This works as expected without pam_tally but fails with it because I get a PAM_AUTH_ERR from the pam_authenticate() call.

A user that needs to update his password trying to login via telnet shows the same symptoms as my application. The system displays the "You are required to change your password ..." message and then exits without giving you a chance to do it.

Has anyone else notice this or found a fix/workaround?

Jim Young
Fedora user

My /etc/pam.d/system-auth file:
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth required /lib/security/$ISA/pam_tally.so onerr=fail no_magic_root
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth required /lib/security/$ISA/pam_deny.so

account required /lib/security/$ISA/pam_tally.so per_user deny=3 reset no_magic_root
account required /lib/security/$ISA/pam_unix.so
account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet
account required /lib/security/$ISA/pam_permit.so

password requisite /lib/security/$ISA/pam_cracklib.so retry=3
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
password required /lib/security/$ISA/pam_deny.so

session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.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
SLES9 Password required to restart jdozarchuk SUSE / openSUSE 2 10-27-2004 02:56 PM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 09:39 AM
linuxiso download password required demmylls Linux - General 1 01-08-2004 01:36 AM
pam_tally - Red Hat 9 - Does it work? terminaljunkie Linux - Security 2 06-10-2003 08:21 AM
Required to enter username and password too many times rdaves@earthlink.net LQ Suggestions & Feedback 2 06-17-2001 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:23 PM.

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