Bug 104179 - useradd does not allow dots in the username
Summary: useradd does not allow dots in the username
Keywords:
Status: CLOSED DUPLICATE of bug 89205
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: shadow-utils
Version: 9
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-10 20:53 UTC by Rishi Gangoly
Modified: 2007-04-18 16:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 18:58:33 UTC
Embargoed:


Attachments (Terms of Use)
Patch for chkname.c (508 bytes, patch)
2003-09-10 20:57 UTC, Rishi Gangoly
no flags Details | Diff

Description Rishi Gangoly 2003-09-10 20:53:49 UTC
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):
shadow-utils-4.0.3-6

How reproducible:
Always

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.

Additional info:

I've posted this pub on a newsgroup. See the thread for responses to it.

http://www.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=1e6d1789.0309050810.45e1cf51%40posting.google.com&rnum=1&prev=/groups%3Fsafe%3Dimages%26ie%3DISO-8859-1%26as_uauthors%3Drishi%40theargoncompany.com%26lr%3D%26hl%3Den

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.

Comment 1 Rishi Gangoly 2003-09-10 20:57:52 UTC
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; 

;-)

Comment 2 Jeff Nessen 2003-10-11 03:37:44 UTC
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.

Comment 3 Milan Kerslager 2003-10-23 03:54:27 UTC
The patch #94389 does not work. See bug #89205 for better solution.

*** This bug has been marked as a duplicate of 89205 ***

Comment 4 Red Hat Bugzilla 2006-02-21 18:58:33 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.