does not canonicalize username before editing /etc/group
Bug #120051 reported by
Jerome Haltom
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
adduser (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: adduser
`adduser isi\jhaltom admin' results in an entry being put into /etc/group of 'isi\jhaltom'. Invoking `getent passwd isi\jhaltom' returns a user named 'ISI\jhaltom'. adduser should use this canonical case-sensitive version.
To post a comment you must log in.
I see the following problems:
1. I am not able to reproduce the method of getting 'isi\jhaltom' as a username. When I try it on feisty with adduser it drops the '\' when I don't use quotes, or fails with a reasonable diagnostic when I do:
root@joehill:/etc# adduser isi\\jhaltom
adduser: To avoid problems, the username should consist only of
letters, digits, underscores, periods, at signs 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
---snip---
When I use the exact command you gave:
root@radioflyer:~# adduser isi\jhaltom admin
adduser: The user `isijhaltom' does not exist.
---snip---
is what I get. I don't see support for this functionality in the man page either. To proceed with this bug, please provide:
1. Your distribution and release of Ubuntu. This should be a Ubuntu bug. Perhaps also provide uname -a.
2. Specific document on that version of Ubuntu saying this kind of username, and this kind of adduser usage is supported.
3. Clarify exact commands and show results when you execute them please.
4. If you cannot repeat this please let us know that so we can keep it around but manage its priority better.