Operating System - HP-UX
1752370 Members
5876 Online
108787 Solutions
New Discussion юеВ

Password Aging Email Notification

 
Jonathan Grymes
Frequent Advisor

Password Aging Email Notification

I have an HPUX 11i Ver 1 system, in trusted mode, with password aging enabled. Is there a way to configure the system to send email notifications to users when their password is about to expire , maybe a week prior to expiring or whatever.

Thanks,
Jon
6 REPLIES 6
Victor Fridyev
Honored Contributor

Re: Password Aging Email Notification

Hi,

Read
man passwd
passwd -r nisplus [-l] [-f] [-n min] [-w warn] [-x max] [-D domain]
name


-w warn Specify the number of days, warn, prior to the password
expiring when the user will be notified that the
password needs to be changed. This option is only
enabled when the system has been converted to a
trusted, secure system. Refer to the Managing Systems
and Workgroups manual for how to convert your HP-UX to
a trusted, secure system.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Juan M Leon
Trusted Contributor

Re: Password Aging Email Notification

I will suggest to create a sub-routine on the /etc/profile to check how many days left before account password expires and do a mailx to the user, however you need to know or have registered somewhere the user e-mail address (for example : user@company.com)
AwadheshPandey
Honored Contributor

Re: Password Aging Email Notification

Check This thread...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=9100
Cheers,

Awadhesh
It's kind of fun to do the impossible
Steven E. Protter
Exalted Contributor

Re: Password Aging Email Notification

Shalom,

Victors approach will work if you create a read loop for all users.

You might need some mail script assistance to finish Victor's script.

http://www.hpux.ws/mailfile2

Its overkill but you can lift code out of it to actually send the email.

Trusted system is somewhat problematic because HP deprecated it in 11.31 and replaced it with a new add in product. So don't think about going trusted on 11.31 and don't rely on this approach on systems you plan to make trusted.

Hi to Victor, my minahel, working extra hard in Israel while I'm on vacation.

minahal=direct manager.

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

Re: Password Aging Email Notification

Hi Jon,
if you have pwage on your system you can use the attached script that notify by email.
HTH,
Art

N.B. PLease assign points!
Rafael Casero
Regular Advisor

Re: Password Aging Email Notification

I tried it in my HP-UX 11.2 and was not able to find /etc/shadow...

Also I had to change it for /sbin/bash to /sbin/sh.

Please helph