HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Simple shell script to report the number of days to the user before their passwords expires

 
SOLVED
Go to solution
ASOEASTGEOGRAPHY
Occasional Advisor

Simple shell script to report the number of days to the user before their passwords expires

Customer has non-trusted 11.23 HP-UX Systems and needs a simple shell script to run to let the user know the number of days before the password expires everytime they login. thanks in advance

EXAMPLE output:

Your password will expire within 24 hours.
Last successful login: EDT swa01jmptjx02.omc.hp.com
Last login: Tue May 12 18:21:01 2009 from swa01jmptjx02.omc.hp.com
Kristina(:)
2 REPLIES
Tingli
Esteemed Contributor

Re: Simple shell script to report the number of days to the user before their passwords expires

Will set the maximum days and warning days same work?