Red Hat Bugzilla – Bug 434778
luseradd ignores parameter --interactive
Last modified: 2008-02-25 20:16:01 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:126.96.36.199) Gecko/20080208 Fedora/188.8.131.52-1.fc8 Firefox/184.108.40.206
Description of problem:
The luseradd utility creates a user account without asking for any information even if command line "--interactive" was given.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. luseradd --interactive testuser
No prompt for any information.
Prompt for all information.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Thanks for your report.
The behavior is correct, only the --help output is imprecise. --help says:
-i, --interactive prompt for all information
but the real meaning of the option is:
Ask all questions when connecting to the user database, even if
default answers are set up in libuser configuration.
Unfortunately the libuser version in RHEL4 has very little documentation.
Thus, -i affects only libuser modules that can ask questions about configuration
- in practice, only the "ldap" module. It does not mean that luseradd should
ask for information about the account to create interactively.