- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command Line Password Expiration Notification
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
Discussions
Discussions
Forums
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
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
тАО01-07-2004 07:55 AM
тАО01-07-2004 07:55 AM
Command Line Password Expiration Notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 08:15 AM
тАО01-07-2004 08:15 AM
Re: Command Line Password Expiration Notification
have a look here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=9100
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 08:25 AM
тАО01-07-2004 08:25 AM
Re: Command Line Password Expiration Notification
spectest:TEST $ passwd -r files -s spectest
spectest PS 10/23/03 0 90 20
Last successful login for root: Wed Jan 7 11:08:57 PST8PDT 2004 on tty
Last unsuccessful login for root: Wed Jan 7 12:36:10 PST8PDT 2004
Your password will expire on Wed Jan 21 13:25:37 PST8PDT 2004
You see this has much more detail and would be a nice tidbit of information to have dumped to a file so you could see ALL the accounts ready to expire with specific times, dates and what not. Clay's is close with the weeks but I was hoping someone has done what HP has been able to do. Somehow HP gives you all this info on an account that is nearing expiration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 09:51 AM
тАО01-07-2004 09:51 AM
Re: Command Line Password Expiration Notification
The logic how the system calculates that the password is going to expire is..
It looks at password protected database and sees when the password was succesfully changed (say x), and then sees what is the password aging for that user(say y).
Then y-x tells you how many days are left for the password to expire.
I have written a C program using this logic to exactly calculate the date when the password will expire and works great.
Use getprpwnam() and structure pr_passwd
let me know if you need further help in writing that C program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2004 10:51 AM
тАО01-07-2004 10:51 AM
Re: Command Line Password Expiration Notification
Mike