i need to know, when an AIX password will be expired.
Unfortunately i'm NOT root, and i will NEVER be root .....
so thinks like
root@tsmmgmt02:/etc/security# pwdadm -q nagios
nagios:
lastupdate = 1181056135 <<<<<<<< last change of password
don't work.
What is an possible workaround ?
Thanks
Dieter
How about this. Let's suppose that your password expires every 30
days. 60 seconds * 60 minutes * 24 hours * 30 days = 2592000 seconds
to expiration.
$ perl -e 'print scalar(localtime(1181056135)), "\n";'
Tue Jun 5 11:08:55 2007
$
now add 1181056135 + 2592000
$ expr 1181056135 + 2592000
1183648135
$
$ perl -e 'print scalar(localtime(1183648135)), "\n";'
Thu Jul 5 11:08:55 2007
$
This now shows the date of expiration.
Hope this gives you enough fuel to script with... If not, lemmeno.
Good Luck!
The only way I can think of doing this at the user level would be to
have your sys admin increase the following time:
* pwdwarntime The number of days before a forced password change
that a
* warning will be given to the user informing them of
the
* impending password change. Possible values: a
positive integer
* or 0 to disable this feature.
Best would be to talk about sudo with your sys admin as Vladimir noted
above.
Hope this helps,
Casey