Red Hat Bugzilla – Bug 130379
redhat-config-users does not use the password age defaults in /etc/login.defs
Last modified: 2007-11-30 17:07:03 EST
Description of problem:
The redhat-config-users should use the defaults for password aging as
shown in /etc/login.defs since that option is not available during
user creation. It is known that such an option is available after the
user is created by accessing the properties of the user. But the tool
should accept the defaults for portions of user creation which are not
able to be set at creation time.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.add line "PASS_MAX_DAYS 90" to /etc/login.defs
2.create a new user using the redhat-config-users tool
Actual Results: line in /etc/shadow file looks like:
note expiration of 99999
Expected Results: line in /etc/shadow file looks like:
note expiration of 90
editting /etc/libuser.conf and setting
LU_SHADOWMAX = 90
had no effect on the user created using redhat-config-users either.
Created attachment 106051 [details]
Patch r-c-users so it honors defaults set in /etc/libuser.conf (or in libuser itself)
I've built redhat-config-users-1.1.18-3 which fixes this problem -- it
doesn't honor login.defs but libuser.conf -- and opened an erratum for it.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.