[Adduser-devel] Bug#327144: adduser: calls chage even when shadow passwords aren't being used

Marc Haber mh+debian-packages at zugschlus.de
Thu Sep 8 05:24:30 UTC 2005

On Thu, Sep 08, 2005 at 01:45:39AM +0300, Lars Wirzenius wrote:
> adduser calls (as far as I can determine, not knowing perl) chage for
> new system accounts unconditionally. chage fails when shadow passwords
> are not being used.

Actually, it shouldn't, starting with version 3.65:
  * do not abort if chage returns exit code 3. This is an indication
    that password aging cannot be set due to shadow not being enabled.
    Closes: #316089, #317944.

The only chage call, in line 397, has its return code handled in this

However, the experimental version of shadow returns a different error
code on chage failure due to shadow not enabled, and adduser is not
yet adapted. Which version of shadow do you have installed?


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

More information about the Adduser-devel mailing list