[Adduser-devel] Bug#298883: there should be a way to override PASS_MAX_DAYS in useradd

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 298883@bugs.debian.org
Mon, 2 May 2005 07:20:29 +0200

reopen #304934

On Mon, May 02, 2005 at 02:30:08AM +0300, Alexander Gattin wrote:
> I just forgot about a "secret" -O option in
> useradd. :)
> You can use it to override whatever values from
> login.defs
> For example, regarding bug #298883, use of:
> > `useradd -O PASS_MAX_DAYS=99999 usr298883`
> will solve your problem (other solution, that you have
> currently implemented, involves `chage`).
> Thus closing the bug.

Reopening. Please document this option. I cannot use a secret,
undocumented option.

> The problem with -O option is a Tomasz's desire to
> rename it to -K for sake of unfication with Solaris:

So we can/need to wait until it is renamed, then document it, and then
close the bug.


Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835