Operating System - HP-UX
1753726 Members
4484 Online
108799 Solutions
New Discussion юеВ

Re: Creating a banner telling user that their password is about to expire.

 
Brendan McDonald
Frequent Advisor

Re: Creating a banner telling user that their password is about to expire.

I've managed to cobble together 2 scripts to handle this for me. The first 'expirycr' runs in cron and queries the /tcb/auth/files/* directory for each user and outputs their successful password change time and then the date that the password expires.

I thn run expchk which checks my output of the last script (/etc/expirytab). I run this file in each users .profile straight after a clear to clear the screen of rubbish (copyright stuff). It then pops up with the date that the users password expires.

this is only a very basic script and i'm going to customise further - by asking the user if they'd like to change their password now etc...

Thanks for all your help
Brendan McDonald
Frequent Advisor

Re: Creating a banner telling user that their password is about to expire.

here's the other file
Brendan McDonald
Frequent Advisor

Re: Creating a banner telling user that their password is about to expire.

Closing thread.