- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Password expiration email 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
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
07-25-2003 06:11 AM
07-25-2003 06:11 AM
Password expiration email notification
I am an end-user working on a 6Sigma project to improve how users are notified of pending password expirations.
We want to email users, to an external email system such as Lotus Notes, notification of their impending password expirations. This would allow them to be pro-active about maintaining their passwords without sys admin intervention.
The unix group wants to implement this procedure but has been too busy to research how to do it. They have welcomed the HP forum information I have found about how to find the expiration information, but the sample scripts don't paint a complete picture of creating such an automated system.
So, here I am!
I know I am asking for alot, but I do need each step outlined clearly.
The system details are below:
There are a minimum of two unix boxes to implement this on:
HP-UX csg0012 B.11.11 U 9000/869 (tb)
HP-UX csg0006 B.10.20 A 9000/889 (ttyp1)
They are both trusted systems.
The admins use SAM for their user id setups.
Thanks for your time and effort in helping achieve a better system and a qualified specialist!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 06:22 AM
07-25-2003 06:22 AM
Re: Password expiration email notification
If you want to expand on that you will probably have to do this:
read through the /etc/passwd file with an awk script. When you find a user closer than X days to expiration you can send them an email.
You will need to set up your sendmail.cf file to relay the mail
Change
DS
to
DS
[IP_address_of_mail_relay_server]
save the file
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
I'm attaching a mailer script that might help you out.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 07:49 AM
07-25-2003 07:49 AM
Re: Password expiration email notification
It sounds like you already have the scripts to find the expiration date, if they don't calculate how far away the date actually is then you'll benefit from A. Clay Stephenson's caljd.sh script.
The way forward is then to have a cron job running at some convenient idle time in the night that runs through the passwd file, pulls the expiration date for each user, calculates how far in the future the date is - then fires off an email if it's within 5 days (or whatever) of expiry.
regards,
Darre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 07:56 AM
07-25-2003 07:56 AM
Re: Password expiration email notification
Included in this database are these fields of interest:
fd_expire; /* expiration time duration in secs */
fd_lifetime; /* account death duration in seconds */
fd_pw_expire_warning; /* password expiration warning */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 08:16 AM
07-25-2003 08:16 AM
Re: Password expiration email notification
If they have any questions, I will post them for further help.
Thanks so much for the quick response!
-Linda