PDA

View Full Version : [ubuntu] ssh will not let you change youur password if expired


davidmarkey
November 11th, 2008, 03:28 PM
If my password is expired i cannot change it via ssh.

Example:

test@192.168.50.100's password:
You are required to change your password immediately (root enforced)
Connection closed by 192.168.50.100


This is a server so this needs to work. On intrepid.

davidmarkey
November 12th, 2008, 12:56 PM
Anyone? If i cant get this fixed i'll have to use debian or centos

d_kramer
March 11th, 2009, 02:02 PM
Hi,

I had the same problem and could trace it down to a config problem in PAM.

Changing
account [success=1 default=ignore] pam_unix.so

to
account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so

in /etc/pam.d/common-account helped for me.

Cheers,
Denis