Red Hat Bugzilla – Bug 441460
useradd error message unhelpful
Last modified: 2008-04-09 01:21:53 EDT
Description of problem:
useradd doesn't like telling you why the command-line is a syntax error
And/or the particular command-line is not faulty.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. useradd -M -b /home/users testac
Usage: useradd [options] LOGIN
Should work, or should say why it is a syntax error.
There is nothing in the usage or manual to indicate that -M or -b are somehow
exclusive. There is nothing wrong with specifying -M (dont create home
directory) and the -b option (where home directory base is ... needed to enter
into passwd file anyhow).
Apparently -b requires a -D. But the plain usage() is really quite lame and
unhelpful. Wouldn't all those usage()'s be better replaced with fatal("This is
the reason for the failure").
How much would that cost?
shadow-utils-220.127.116.11-22.fc8 has been submitted as an update for Fedora 8
shadow-utils-4.1.1 looks a lot better with useful error messages.
shadow-utils-18.104.22.168-22.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.