Red Hat Bugzilla – Bug 104179
useradd does not allow dots in the username
Last modified: 2007-04-18 12:57:30 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)
Description of problem:
useradd does not allow dots in the username. See the error it gives.
# useradd rishi.g
useradd: invalid user name 'rishi.g'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. useradd abc.xyz
Actual Results: useradd: invalid user name 'abc.xyz'
Expected Results: it should have returned to the prompt without an error and created the user in the system.
I've posted this pub on a newsgroup. See the thread for responses to it.
Another nice person gave me a patch for the file 'chkname.c' that is buggy.
I would be happy to sent the patch for this program.
Created attachment 94389 [details]
Patch for chkname.c
This is a patch that "Torsten Finke" created and sent to me via e-mail.
Notes from the author...
- there is absolutely no warranty;
I am also experiencing this problem. Have you tested against the beta of RHES
AS 3.0? I have a customer who just went live and has 6,000 users on AS 2.1.
Every username has a . in it. If this problem exists in AS 3.0, that will
preclude any future upgrades, without customizing shadow_utils.
The patch #94389 does not work. See bug #89205 for better solution.
*** This bug has been marked as a duplicate of 89205 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.