Operating System - HP-UX
1834805 Members
3183 Online
110070 Solutions
New Discussion

Re: Script Or Program For Password Expire Warning

 
Paul Stuhley_1
Occasional Contributor

Script Or Program For Password Expire Warning

Dose anyone out there already have a script or program that I can run as a cron to give me a daily list of users who's password is going to expired.
I am not much of a programmer and could struggle to create one, but I know 11i uses getprpwent on a trusted system which I administer.

paul s.
pauls@shurgard.com
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Script Or Program For Password Expire Warning

start with passwd -sa then process the output for what you want.

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
Steven E. Protter
Exalted Contributor

Re: Script Or Program For Password Expire Warning

This script may get you thinking.

I think you'll like it, Don't ignore the commented code.

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
Paul Stuhley_1
Occasional Contributor

Re: Script Or Program For Password Expire Warning

Thanks I will give it a try

paul
jerry1
Super Advisor

Re: Script Or Program For Password Expire Warning

Here are the binaries I use.
jerry1
Super Advisor

Re: Script Or Program For Password Expire Warning

Blast! The first email was the pwagerpt binary. Wish HP would send and attachment as its real name.

This one is the one we use in the global users startup. It is called pwexpmsg.


jerry1
Super Advisor

Re: Script Or Program For Password Expire Warning

This one is pwage.

pwage works for individual accounts.
Or if just run alone it uses the current
login id.

pwage

pwagerpt -generates a report for all accounts.

pwexpmsg -is used to notify users that their
password is going to expire in 3 2 1 weeks.



Paul Stuhley_1
Occasional Contributor

Re: Script Or Program For Password Expire Warning

Thanks Jerry

I will have a chance to try it today.

paul