Operating System - HP-UX
1826780 Members
1427 Online
109702 Solutions
New Discussion

Email notification of password expiration

 
SOLVED
Go to solution
Mike Smith_33
Super Advisor

Email notification of password expiration

I received a request from a user to send him an email at some point before his password expires. Yes I have the system warning set! He still wants to know if I could have the system email him. Has anyone out there done this? I am just checking to see if this wheel has been invented already before I waste any time on it.

Thanks in advance.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Email notification of password expiration

Shalom,

I've written reports based on the passwd -sa command.

You can also set up the notification and actually have /etc/profile send the notice by trapping the warning message.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arturo Galbiati
Esteemed Contributor
Solution

Re: Email notification of password expiration

Hi Mike,
you can use the Bill Hassell's script userinfo (attached). It requires to be root to run it, otherwise if you are not able to log as root I can provide you another script which uses passwd -s for each user you want to analyze but it requires an entry in .rhosts.
HTH,
Art
Mike Smith_33
Super Advisor

Re: Email notification of password expiration

Thanks for taking the time to reply. The script works great.