Is there a unix command to display unix user account expiry, inactive expiry

From: Jitendra Sharma (jksharma_at_yahoo.com)
Date: 06/09/04


Date: 9 Jun 2004 11:29:20 -0700

Dear Unix Gurus,

1. Is there a Solaris command to display configured unix user account
expiry days i.e let's say I execute

%unix usermod -e 06/11/2004 jk1

How can I see this date using a unix command ? and similarly for
inactive expiry days. I tried using passwd -s jk1 but that displays
only Passoword information only.

2. Is there a Solaris API to convert expiry date in /etc/shadow to
mm/dd/yy format and vice-versa ?ie.

jk1:2j92MGiE0iljY:12577:7:30:7::12580: <--How can I convert 12580 to
06/11/2004?

Any help/pointers will be highly appreciated.

Thanks a ton in advance.
Jitendra



Relevant Pages