Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AIX password expiration + notification

762 views
Skip to first unread message

Dieter Geyer

unread,
Mar 25, 2009, 1:04:31 PM3/25/09
to
hello all

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

UncleSteve

unread,
Mar 26, 2009, 6:59:49 AM3/26/09
to

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!

Vladimir Usenko

unread,
Mar 26, 2009, 7:31:50 AM3/26/09
to
I mean that you can see it on /etc/sercurity/user, if you're added in
security group. Or find possibility of give sudo rights.
--
UV-RIPE

caseyjbr...@gmail.com

unread,
Mar 26, 2009, 8:41:40 AM3/26/09
to

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

0 new messages