Forcing users to change password at login - Probably "Again"

Ben Kevan ben.kevan at gmail.com
Tue Jul 15 16:13:04 UTC 2008


On Tuesday 15 July 2008 07:25:06 am Nigel Wade wrote:
> Ben Kevan wrote:
> > And just to make me feel bad..
> >
> > chage -d 0 does what my script does.. but for some reason when you su
> > username in RHEL 4 it does not look for the expiration in /etc/shadow
>
> It does here.
> # chage -d 0 testuser2
> ...
>
> $ su - testuser2
> Password:
> You are required to change your password immediately (root enforced)
> Changing password for testuser2
> (current) UNIX password:
>
> Maybe you have modified some configuration which breaks it. Check
> /etc/pam.d/su and system-auth.
>
> --
> Nigel Wade, System Administrator, Space Plasma Physics Group,
>              University of Leicester, Leicester, LE1 7RH, UK
> E-mail :    nmw at ion.le.ac.uk
> Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555


Nigel, 

Can you try the same su as I did: 

su username and not su - username .. If not i'll test both later, however a 
bit busy right now. 

Thanks. 

Ben




More information about the redhat-list mailing list