LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-01-2016, 02:11 AM   #1
slashroot
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
Question no old password was entered


Centos: 6.8
I want to create a password history using PAM.

but there are some issues,
- When changing the password for root/user, the error "gkr-pam: couldn't update the 'login' keyring password: no old password was entered" is seen.
- Password change works but error is logged. (/var/log/secure)

/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 		pam_env.so
auth sufficient 	pam_unix.so nullok try_first_pass
auth requisite 		pam_succeed_if.so uid >= 500 quiet
auth required 		pam_deny.so

account required 	pam_unix.so
account sufficient 	pam_localuser.so
account sufficient 	pam_succeed_if.so uid < 500 quiet
account required 	pam_permit.so

password requisite 		pam_cracklib.so try_first_pass retry=3 type= dcredit=-2 ucredit=-2 lcredit=-2 ocredit=-2 minlen=8
password sufficient 	pam_unix.so sha512 shadow nullok try_first_pass use_authtok remember=5
password required 		pam_deny.so
password required       pam_pwhistory.so remember=5 use_authtok

session optional 				   pam_keyinit.so revoke
session required 				   pam_limits.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required 				   pam_unix.so
/etc/pam.d/password-auth
Code:
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth 		required 	pam_env.so
auth 		required 	pam_tally2.so file=/var/log/tallylog deny=3 even_deny_root unlock_time=1800
auth 		sufficient 	pam_unix.so nullok try_first_pass
auth 		requisite	pam_succeed_if.so uid >= 500 quiet
auth 		required 	pam_deny.so

account 	required 	pam_unix.so
account 	required 	pam_tally2.so
account 	sufficient 	pam_localuser.so
account 	sufficient 	pam_succeed_if.so uid < 500 quiet
account 	required 	pam_permit.so

password 	requisite 		pam_cracklib.so try_first_pass retry=3 type=
password 	sufficient 		pam_unix.so use_authtok sha512 shadow remember=5
password 	required 	  	pam_deny.so
password  	required     	pam_pwhistory.so remember=5 use_authtok

session 	optional 		pam_keyinit.so revoke
session 	required 		pam_limits.so
session 	[success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session 	required 		pam_unix.so
I think adding remember=5 in pam_unix.so is working , but old passwords not storing to /etc/security/opasswd (i was touch this file).

[root@local~]# ls -lZ /etc/security/opasswd
-rw------- root root ? /etc/security/opasswd
 
  


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
[SOLVED] terminal not allowing password to be entered mertsatic4u Linux - Newbie 10 12-17-2015 09:24 PM
Can't login on Ubuntu with password I entered in Wubi wvdm Linux - Newbie 6 11-11-2012 07:58 PM
passwd prompts for new password only once when a short password is entered powah Linux - Security 0 09-19-2007 04:20 PM
Login hanging after Password entered... JoeNeedsHelp Linux - Newbie 18 01-26-2006 01:23 PM
MD5 password changes checksum when entered into database. Pcghost Programming 9 10-21-2003 12:31 PM

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

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