- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Password expiry on trusted systems.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 04:55 AM
03-06-2006 04:55 AM
I know the /usr/lbin/getprpw -m spwchg userid gives the date the password was last changed but don't know the options for the getprpw command to get the date when the password will expire. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 05:57 AM
03-06-2006 05:57 AM
Re: Password expiry on trusted systems.
Well, there's no direct way to do this woth a getprpw command.
What you could do is run
getprpw -m spwchg
to get the last successful PW change date.
Then look at the u_exp value in the /tcb/files/auth/system/default file & divide it by 60, 60 again & finally 24.
This will give you the PW lifetime in days & add that to the spwchg date.
Or convert the spwchg to epoch seconds & add u_exp to it & then convert back to date.
You could use Clay's caljd program to do any of the above.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 05:59 AM
03-06-2006 05:59 AM
Re: Password expiry on trusted systems.
getprpw -m mintm,exptm,expwarn,lftm userid
man getprpw for more..
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 07:16 AM
03-06-2006 07:16 AM
Re: Password expiry on trusted systems.
Is there a man page which gives the meaning of the fields u_exp etc. I'll look around for Clay's script. PS let me know if you know of a script that exists that will make my life easy. Thx!
Geetha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 07:23 AM
03-06-2006 07:23 AM
Re: Password expiry on trusted systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 07:43 AM
03-06-2006 07:43 AM
Re: Password expiry on trusted systems.
Thanks. I found the script. I'll see the usage to figure out how to use it for what I need.
Geetha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 09:08 PM
03-06-2006 09:08 PM
Solutionuseful thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=847387&admit=716493758+1112342754142+28353475
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 02:58 AM
03-07-2006 02:58 AM
Re: Password expiry on trusted systems.
Works great! Thank you.
Thanks for all your responses.
Geetha.