Bug 586861

Summary: maximum size of groupname, username is 31 characters
Product: Red Hat Enterprise Linux 5 Reporter: Miroslav Vadkerti <mvadkert>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: fnadge, sgrubb, tmraz
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the maximum number of character for username and groupname was limited to 31. With this update Maximum size of username and groupname is set to 32 characters.
Story Points: ---
Clone Of:
: 618129 668431 (view as bug list) Environment:
Last Closed: 2011-01-13 23:28:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 618129, 668431    
Attachments:
Description Flags
adjusted goodname patch none

Description Miroslav Vadkerti 2010-04-28 13:17:34 UTC
Description of problem:
groupadd doesn't accept group name with 32 characters (maximum is 31)

Version-Release number of selected component (if applicable):
shadow-utils-4.0.17-15.el5.x86_64

How reproducible:
always

Steps to Reproduce:
.qa.[root@x86-64-5s-m1 ~]# echo -n "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" | wc -c
32
.qa.[root@x86-64-5s-m1 ~]# groupadd zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
groupadd: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz is not a valid group name

Actual results:
error: invalid group name

Expected results:
groupadd successful

Additional info:

Comment 1 Peter Vrabec 2010-07-29 12:28:43 UTC
Created attachment 435265 [details]
adjusted goodname patch

man page fix will be needed too.

Comment 4 Florian Nadge 2011-01-03 16:03:25 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, the maximum number of character for username and groupname was limited to 31. With this update Maximum size of username and groupname is set to 32 characters.

Comment 6 errata-xmlrpc 2011-01-13 23:28:03 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0094.html