[Adduser-devel] Bug#454744: Bug#454744: adduser refuse to create user even with --force-badname

Stephen Gran sgran at debian.org
Fri Dec 7 14:55:48 UTC 2007


This one time, at band camp, Michelle Konzack said:
> I need to install virtual-users on my courier-imap-server and must
> install the $USER as
> 
>     /home/${LOGIN}@${FQDN}
> 
> but if I use:
> 
> ----8<------------------------------------------------------------------
> adduser --home /home/root at michelle1.private.tamay-dogan.net \
> 	--shell /bin/bash \
> 	--uid 3186 \
> 	--ingroup virtualusers \
> 	--force-badname \
> 	root at michelle1.private.tamay-dogan.net
> ----8<------------------------------------------------------------------
> 
> I get this:
> 
> ----8<------------------------------------------------------------------
> adduser: To avoid problems, the username should consist only of
> letters, digits, underscores, periods and dashes, and not start with a
> dash (as defined by IEEE Std 1003.1-2001). For compatibility with Samba
> machine accounts $ is also supported at the end of the username
> ----8<------------------------------------------------------------------

I get this:
steve at charon:~$ sudo adduser --home /home/root at michelle1.private.tamay-dogan.net \
>         --shell /bin/bash \
>         --uid 3186 \
>         --ingroup virtualusers \
>         --force-badname \
>         root at michelle1.private.tamay-dogan.net
Password:
Allowing use of questionable username.
[ ... ]

Judging by the code at that point, I rather suspect you were trying a
different username than the one you have supplied in this bug report.

Remember as well that adduser is not a general purpose user management
tool - if it were, it wouldn't have any policy checks about the form of
the username.  It exists to move logic of account creation into one
place so that maintainer scripts are easy to write.  The fact that it
also makes sysadmin's lives a little easier is a bonus, but not a design
goal.

Right now, this 'bug' isn't reproducible.  If you can't tell me what you
were actually doing that broke (and why that is a bug in adduser, rather
than your naming scheme), I'm inclined to close this report.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20071207/5675551b/attachment.pgp 


More information about the Adduser-devel mailing list