Password change on first login via ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am having a problem getting RH 3.0 to prompt user to change password
on first login with ssh.  This works more or less ok on RH 2.1,
perfectly on Gentoo 2.6 kernel, but not at all on RH 3.0.

I do the following:

Useradd newuser
Usermod -p "" newuser
Chage -d 0 newuser


RH 2.1
If newuser connects via ssh on RH 2.1, they are prompted for a password.
If the user types anything, then they are then prompted to enter a new
password immediately.  That's ok as long as the user knows that they
should initially type anything at all in order to get the second prompt.

Gentoo
If newuser connects via ssh on Gentoo, the receive immediately the
following prompt: You are required to change your password immediately
(root enforced)
New UNIX password:

This is expected behaviour.

RH 3.0
If newuser connects via ssh on RH 3.0, the they are prompted for a
password, if the use types 'asdfasdf', pressing enter closes the ssh
session.  Pressing enter without typing a password also closes the
session.


I have copied the /etc/pam.d/ config files from RH 2.1 and Gentoo over
to the RH 3.0 system, with no luck.

Is this a pam version/module version issue?  Any ideas how I can enforce
a password change on first login on RH 3.0?

Thanks,

Boyd

_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux