Operating System - HP-UX
1847882 Members
5437 Online
104021 Solutions
New Discussion

Re: untrusted password age algorithm?

 
Doug O'Leary
Honored Contributor

untrusted password age algorithm?

Hey;

I have a client who's looking for a script to ID the password ages of all his accounts on an untrusted 11.11 and 11.23 system. I can't seem to find the algorithm that'll tell me that information.

I just changed my password on the system today, and the password aging information is displayed as: ,3/rS

r = 55
S = 31

The number of weeks since Jan 1 1970 is 1975. 13828 days since 1970 / 7 = 1975 and a fraction.

I can't seem to get the rS number, in any combination, to match 1975 or anything remotely close.

The absolute closest I've come is:

31 * 63 + 55 = 2008.

Does someone have the correct algorithm? I'd appreciate any info.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
2 REPLIES 2
Doug O'Leary
Honored Contributor

Re: untrusted password age algorithm?

hrrm; missed a char.

S=30, not 31.. that way the math works:

30 * 64 + 55 = 1975

Didn't think it should be that difficult...

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Dennis Handly
Acclaimed Contributor

Re: untrusted password age algorithm?

Attached is an unsupported C program I wrote to decode the expiration date.