The users were added with useradd
user:$1$Gxs1tJL.$q.1iqaPSR
each user must change their password every 30 days and cannot change their password more than 1 time within a 3 day period.
Main Topics
Browse All TopicsEnvironment overview:
OS: CentOS 5.3
Kernel: 2.6.18-128.4.1.el5 #1 SMP
OpenSSH 4.3p2
Summary of Problem
Users connecting to the server via SSH are unable to change their passwords if they have expired (see code sample for details). This issue affects SSH users only, console and telnet users do not experience the issue.
What I have looked at:
/etc/ssh/sshd_config file:
#StrictModes yes
#PermitEmptyPasswords no
PasswordAuthentication yes
UsePAM yes
/etc/pam.d/sshd/
#%PAM-1.0
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
session optional pam_keyinit.so force revoke
session include system-auth
session required pam_loginuid.so
/etc/pam.d/system-auth
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_succeed_if.so uid < 500 quiet
account required pam_permit.so
password requisite pam_cracklib.so try_first_pass retry=3
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
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
gut feeling tells me this is an issue with PAM.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
More info from the logs.
The following was listed in /var/log/secure after the user tried to change their password.
Sep 22 13:26:45 passwd: pam_unix(passwd:chauthtok)
Sep 22 13:26:45 passwd: pam_unix(passwd:chauthtok)
After I found this I looked at the permissions on /usr/bin/passwd again. I set the suid bit for /usr/bin/passwd.
SSH users can now change their own passwords.
Business Accounts
Answer for Membership
by: mrcustardPosted on 2009-09-21 at 13:31:08ID: 25387277
How did you add the user to /etc/passwd? Did you do it manually or with "useradd"?
Also can you post the output of the following command?
cat /etc/shadow | grep <username>