[techtalk] password policy?
Eric Lammerts
eric at lammerts.org
Wed Jun 20 21:24:55 EST 2001
On Tue, 19 Jun 2001, Nicole Zimmerman wrote:
> > chage -M 90 -W 10 <username>
> >
> > will set the account of username to expire every 90 days and issue a
> > warning that the password is going to expire 10 days in advance. This
> > command actually edits the /etc/shadow file to produce the desired results.
>
> Will I have to do this for every username? Yes I can write a script (which
> I have done a lot of lately), but if there is an easy way to do it
> automatically that would be nice :o)
I thought the two were the same ;-).
On Debian, you can create a /usr/local/sbin/adduser.local which gets
called automatically when you create a new user (see the adduser(8)
manpage).
Eric
More information about the Techtalk
mailing list