From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Description of problem:
adduser is unable to handle the the character '.' in usernames, example
name.lastname, even though it works very well when usernames like that is
entered in /etc/passwd.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Type 'adduser red.hat' and hit enter.
Actual Results: adduser: invalid user name 'red.hat'
Expected Results: The username should be added.
I too have experienced this bug (which is a major pain in the butt). In my case
it is a fresh installation (I have heard that this problem does not occur with
Does anyone have a workaround? - Aside from editting the passwd file to change
the username manually, that it.
The bug does not affect the command "newusers" so users can be created in batch
mode without problems.
In what is probably the most tedious workaround in history, an individual user
can be created directly from the keyboard using the following syntax:
echo 'username:password:::comment:homedirectory:defaultshell' | newusers
Created attachment 93907 [details]
Patch to allow period ('.') in usernames
*** Bug 104179 has been marked as a duplicate of this bug. ***
*** Bug 88358 has been marked as a duplicate of this bug. ***
*** Bug 80462 has been marked as a duplicate of this bug. ***
The patch from comment #3 works. I made RPM package
shadow-utils-4.0.3-6.1.9.i386.rpm, you can grab it here:
I see no reason to not allow dots in usernames. I see no application that do not
allow usernames longer than 8 characters or dots in usernames since RH 6.0 or so.
Please accept this patch to be backward compatible with Red Hat Linux and allow
users to utilize glibc and other new tools. We are not living at 60's or 70's.
*** Bug 108614 has been marked as a duplicate of this bug. ***
I have this same problem, except my problem is serious. I have
thousands of users on RH7.3 with dots in usernames and I'm planning
to migrate them as soon as possible. Renaming these users is just
Just got hit with this one myself. Way too many dot'ed users out
there to even consider removing the dots from all user accounts! I
like the patch submitted, but it doesn't allow usernames that *begin*
with a dot. I've no need for usernames beginning with a dot myself,
but if anyone out there does, please speak up now. IMHO, this patch
should make it to release as soon as possible so folks can press
forward with upgrading their 7.x and 8.x boxes.
Or better yet... switch to Debian. Knoppix is pretty good. Once you
get used to Debian, you won't switch to another GNU/Linux
BTW I tried creating a user starting with a dot and it allowed me to
do so. However, if I try to login using the 'su' command it says:
su: User not known to the underlying authentication module
And when I login from the console it says: Login incorrect
So I guess this is a problem with something else and not shadow
*** Bug 88877 has been marked as a duplicate of this bug. ***
*** Bug 100565 has been marked as a duplicate of this bug. ***
The RPM from comment #7 worked on our RH9 servers ... but we also
have the same problem on Fedora CORE 1 ... and on that the RPM won't
install because Fedora uses a newer version ...
Can someone help me to make the ' . ' issue work on Fedora?!
Since i haven't yet found a solutions for Fedora yet ..
As RH 9 is near of end-of-life, I'm marking as duplicate of new bug
related to RHEL3 (Red Hat Enterprise Linux).
I have patched version for RHEL3, see the bug #115383.
*** This bug has been marked as a duplicate of 115383 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.