Bug 530506 - lusermod does not check the length of login
Summary: lusermod does not check the length of login
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libuser
Version: 5.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Miloslav Trmač
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
: 646397 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-23 07:40 UTC by Miroslav Vadkerti
Modified: 2013-10-31 18:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-31 18:59:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miroslav Vadkerti 2009-10-23 07:40:18 UTC
Description of problem:
luseradd checks the length of login, but lusermod does not.

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

How reproducible:
Always


Steps to Reproduce:
# luseradd  user-whose-login-has-34-characters
Error creating group `user-whose-login-has-34-characters': name is too long (34 > 31)
# echo $?
1
# grep user-whose-login /etc/passwd
# grep user-whose-login /etc/group
# luseradd user-whose-login
# echo $?
0
# lusermod -l user-whose-login-has-34-characters user-whose-login
# echo $?
0
# grep user-whose-login /etc/passwd
user-whose-login-has-34-characters:x:501:501:user-whose-login:/home/user-whose-login:/bin/bash
# grep user-whose-login /etc/group
user-whose-login:x:501:
# luserdel -r user-whose-login-has-34-characters
# echo $?
0
# grep user-whose-login /etc/passwd
# grep user-whose-login /etc/group
user-whose-login:x:501:


Actual Results:
lusermod -l accepts login longer than 32 characters

Expected Results:
lusermod -l rejects login longer than 32 characters

Additional info:  
This is a copy of fixed rawhide bug bz456267

Comment 1 RHEL Program Management 2009-11-06 18:45:27 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 3 RHEL Program Management 2010-08-09 18:20:00 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 4 RHEL Program Management 2011-05-31 13:19:15 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 5 Miloslav Trmač 2011-07-28 11:10:27 UTC
*** Bug 646397 has been marked as a duplicate of this bug. ***

Comment 6 RHEL Program Management 2011-09-23 00:10:33 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 7 RHEL Program Management 2012-06-12 01:03:08 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 8 Miloslav Trmač 2013-10-31 18:59:52 UTC
This Bugzilla has been reviewed by Red Hat and is not planned on being addressed in Red Hat Enterprise Linux 5, and therefore will be closed. If this bug is critical to production systems, please contact your Red Hat support representative and provide sufficient business justification. Issue is already fixed in RHEL-6/7.


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