Under Solaris 10 and OpenSolaris snv_134
When setting min or max age for the first time, shadow last change is set to a
random value
(current date of hosts is correct and NTP synchronized).
# passwd -s user
user PS
# passwd -x 365 user
passwd: informations de mot de passe modifiées pour user
# passwd -s user
user PS 03/15/02 0 365
Here date is 2002/03/15 (I have a French locale)
In this case the password expire immediatly
$ su - user
Mot de passe :
su: Password for user 'user' has expired - use passwd(1) to update it
On other hosts date passwd last change was set to : 01/12/09 01/14/09. The
date is set to a random value with -x and -n passwd options.
Workaround is to change passwd immediatly after :
# passwd user
Nouveau mot de passe :
Entrez de nouveau le mot de passe :
passwd: mot de passe correctement modifié pour user
# passwd -s user
user PS 03/29/10 0 365
The date is OK
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]