Re: Is there a unix command to display unix user account expiry, inactive expiry
From: Rich Teer (rich.teer_at_rite-group.com)
Date: 06/09/04
- Previous message: Jitendra Sharma: "Is there a unix command to display unix user account expiry, inactive expiry"
- In reply to: Jitendra Sharma: "Is there a unix command to display unix user account expiry, inactive expiry"
- Next in thread: Michael Vilain
: "Re: Is there a unix command to display unix user account expiry, inactive expiry" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 09 Jun 2004 18:58:37 GMT
On Wed, 9 Jun 2004, Jitendra Sharma wrote:
> 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?
There's no built-in command that I know of, but writing one
would be a piece of cake (one that is, however, left as an
exercise for the reader...). Man getspent and strftime and
friends.
-- Rich Teer, SCNA, SCSA President, Rite Online Inc. Voice: +1 (250) 979-1638 URL: http://www.rite-online.net
- Previous message: Jitendra Sharma: "Is there a unix command to display unix user account expiry, inactive expiry"
- In reply to: Jitendra Sharma: "Is there a unix command to display unix user account expiry, inactive expiry"
- Next in thread: Michael Vilain
: "Re: Is there a unix command to display unix user account expiry, inactive expiry" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|