Shell script to auto-change password before password expiry
From: Gold Sun (goldsun8_at_yahoo.com.sg)
Date: 04/25/05
- Previous message: venu.gopalj_at_wipro.com: "RE: 862433 daemon error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 25 Apr 2005 16:13:23 +0800 (CST) To: sunmanagers@sunmanagers.org
Hi,
We have a job that would fail to send reports out if the root
password expires :
# passwd -s root
root PS 03/23/05 0 30 21
Above shows password will expire 30 days from 23 Mar.
So we have to manually change it by "passwd root" &
this will give us another 30 days.
Would anyone care to contribute a shell script that will
help reset the password every 28 days (as February has
28 days) which I can put in the crontab or the script can
checks for password expiry every day & the expiry is
less than 2 days away, the script will change it.
I will summarize.
Thanks
G Sun
Yahoo! Mobile
- Download the latest ringtones, games, and more!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Previous message: venu.gopalj_at_wipro.com: "RE: 862433 daemon error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|