- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to get a warning before passwords expire
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
10-28-2004 03:50 AM
10-28-2004 03:50 AM
I recently converted my systems running hpux 11.0 to trusted mode, and enabled password aging. The issue I have had so far is that there is no warning the a user password is going to expire. I am concerned that root will expire and lock me out of the machine. I am also concerned about accounts that may not have much login activity and will be locked out without ever knowing when they needed to be updated. Is there a way to find out how much time a user has until their password expires? Ideally I would like to run a script with my other daily info scripts, that would inform me before I have an issue.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 03:53 AM
10-28-2004 03:53 AM
Re: how to get a warning before passwords expire
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 03:57 AM
10-28-2004 03:57 AM
Re: how to get a warning before passwords expire
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 03:59 AM
10-28-2004 03:59 AM
Solutionthe setting expwarn controls the password expiry warning time. Setting it to 7 will inform/warn you for that last 7 days before password is to be expired. now you can put that entry in in script and have some calculation to tell that xx no. of days are remained, before password will expire.
Something like follows.
#!/usr/bin/ksh
typeset -i lif_time=$(/usr/lbin/getprpw -m exptm "user_name")
typeset -i exp_warn=$(/usr/lbin/getprpw -m expwarn "user_name")
typeset -i days_remained = $($lif_time - $exp_warn)
echo "days remained before pass expiry $days_remained" | mailx -s "Password exp info" user@abc.com
Script not tested, but should work.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 03:59 AM
10-28-2004 03:59 AM
Re: how to get a warning before passwords expire
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 04:15 AM
10-28-2004 04:15 AM
Re: how to get a warning before passwords expire
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 04:23 AM
10-28-2004 04:23 AM
Re: how to get a warning before passwords expire
The embedded expiration time in the /etc/password file only applies to untrusted systems. I made the mistake of thinking I could rely on that when converting a system earlier this year.
See the man pages for modprpw and getprpw commands
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 04:46 AM
10-28-2004 04:46 AM