Password got expired but not prompting for new passowrd in soalris 10 and another user got locked why it got locked and when it got locked how to check the logs
/etc/shadow
format is:
username:password:lastchg:min:max:warn:inactive:expire:flag
warn
is number of days before expiring the password and user is warned.
You can change this with passwd -w 7 username
(7 days for example).
You must have also max
configured.
You can check your setup either by grep username /etc/shadow
or passwd -s username
Above of course applies to files based authentication.
If you have lastcheck and max days time in /etc/shadow
then you can try to calculate when the account was locked.
I'm not sure is theere any logs about account locking.