Operating System - HP-UX
1745855 Members
4446 Online
108723 Solutions
New Discussion юеВ

Re: Global change of password-lifetime setting.

 
jeff rowland
Occasional Contributor

Global change of password-lifetime setting.

 
You can Tune a Piano but you can't tuna fish
2 REPLIES 2
David Totsch
Valued Contributor

Re: Global change of password-lifetime setting.

Attached is a handy awk(1) script that will change the aging field on a normal (non-TCB) /etc/passwd. Edit the script and change the variable agechars to what you want each user to have. WARNING: this pushes the same aging out to everyone.

Use it like this:
cp -p /etc/passwd /etc/opasswd
touch /etc/ptmp
awk -f age.awk /etc/passwd /etc/passwd.new
view /etc/passwd.new # visual check
pwck /etc/passwd.new
# if everything checks out, put passwd.new into place (watch those perms!)
rm /etc/ptmp

-dlt-
steve ward
New Member

Re: Global change of password-lifetime setting.


dlt,
thanks!! for the script and awk. it was very helpfull.
steve ward
johncrane, inc