Bug 138632 - useradd - cannot add user with number in username
Summary: useradd - cannot add user with number in username
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: 3
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Eido Inoue
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: 135876
TreeView+ depends on / blocked
 
Reported: 2004-11-10 12:56 UTC by cervajs
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 4.0.3-40
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-10 20:39:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description cervajs 2004-11-10 12:56:22 UTC
Description of problem:
after this update 

* Thu Oct 28 2004 Adrian Havill <havill> 2:4.0.3-38

- conform to posix for user/group name input checking [def 3.426
  and 3.189] which is posix portable filename character set [3.276]
  while disallowing dash for first char as recommended, and disallow
  dollar sign)

i cannot add user with number in login name i.e. fx999001

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.update to shadow-utils-4.0.3-38.i386.rpm 
2.try add user with number in login name
3.
  
Actual results:
invalid username

Expected results:
user added

Additional info:

Comment 1 Eido Inoue 2004-11-10 20:39:38 UTC
bad bug indeed. set of grouping parens got dropped in the goodname()
func for check of chars 2 to N (so actually, a digit as the 1st char
would work)

pushing to rawhide now


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