'passwd: Autentication failure' when trying to change the password on RHEL5
Issue
I got 'passwd: Autentication failure' when I tried to change the password for the user whose UID is not particular UID, where is 800 is the particular UID. But Password was changed successfully with the error messages. I want to avoid the error message.
sample configuration is below.
#%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
auth required pam_tally.so onerr=fail deny=5
account required pam_unix.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 minclass=3
password requisite pam_passwdqc.so min=disabled,disabled,16,8,8
password [default=1 success=ignore] pam_succeed_if.so uid eq 800
password required pam_cracklib.so try_first_pass minlen=15 retry=5 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1 remember=12
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok remember=5
password required pam_deny.so
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
Environment
- Red Hat Enterprise Linux 5.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
