[TriLUG] Expiring passwords
Chip Turner
cturner at pattern.net
Mon Dec 22 10:28:19 EST 2003
Jon Carnes <jonc at nc.rr.com> writes:
> On Mon, 2003-12-22 at 10:08, zzd wrote:
> > How do you set/unset when a particular password expires via comman line. The
> > postgres account on my Mandrake system keeps having the password expire. Is
> > this a global or per user setting?
> > --
> > Z
>
> man 5 shadow
It is almost always a bad idea these days to directly edit
/etc/passwd, shadow, group, and gshadow. Better is to use usermod and
groupmod. In this case in particular, 'usermod -e 2003-12-31 foo'
will make foo's password expire on Dec 31, 2003. Much easier and much
less error prone.
Chip
--
Chip Turner cturner at pattern.net
More information about the TriLUG
mailing list