Operating System - HP-UX
1834150 Members
2426 Online
110064 Solutions
New Discussion

How to calculate dates ??

 
SOLVED
Go to solution
Pepe Jimenez Muñoz
Frequent Advisor

How to calculate dates ??

I need to now when expires the accounts for the users in my HP-UX 11.11.

I read u_succhg form /tcb/files/auth/? structure.

u_succhg#1042798073

This field tell me the last succesfull passwd change.

echo "0d1042798073=Y"| adb
2003 Jan 17 11:07:53

I need:

today(date command) - u_succhg (1042798073)

to now the days for a new passwdord change.

ppviso
2 REPLIES 2
Robert-Jan Goossens
Honored Contributor
Solution

Re: How to calculate dates ??

Arturo Perez del Galleg
Frequent Advisor

Re: How to calculate dates ??

You have a command to facilitate this work, it's /usr/lbin/getprpw.
See the attachment.
HTH