Re: Is there a unix command to display unix user account expiry, inactive expiry
From: Richard L. Hamilton (Richard.L.Hamilton_at_mindwarp.smart.net)
Date: 06/10/04
- Previous message: Chris Jones: "Re: 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: Ian G Batten: "Re: Is there a unix command to display unix user account expiry, inactive expiry"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 10 Jun 2004 15:20:58 -0000
In article <31ea0aae.0406091029.52c38a1c@posting.google.com>,
jksharma@yahoo.com (Jitendra Sharma) writes:
> 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.
Are you also running NIS? Password expiration isn't (well, give or take)
supported on NIS. You could explicitly display the info in the files
with passwd -r files -s jk1, but that's only meaningful if the system
in question has files before nis for passwd in nsswitch.conf, or if jk1
is only present in files and not in nis (i.e. if this isn't the NIS
master set up to build the passwd maps from /etc/passwd and /etc/shadow).
-- mailto:rlhamil@smart.net http://www.smart.net/~rlhamil
- Previous message: Chris Jones: "Re: 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: Ian G Batten: "Re: Is there a unix command to display unix user account expiry, inactive expiry"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|