Bug 121426 - Login name limited to 8 chars in 'last' output
Summary: Login name limited to 8 chars in 'last' output
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: SysVinit
Version: 3.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
: 172247 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-21 14:13 UTC by Mario Lorenz
Modified: 2014-03-17 02:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-21 19:14:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mario Lorenz 2004-04-21 14:13:21 UTC
Description of problem:

The username is not fully displayed in "last" output
Only the first 8 characters are shown. Given the man page
does notmention this limitation, and given further
the user name is not limited to 8 characters on RHEL
(adduser allows longer usernames, redhat-config-user
does, UT_NAMESIZE is 32), this hard limit is
insufficient, especially if you have a username
that is 8 chars long and a second user with a name
that is longer, but has the same first 8 chars.

The same applies to "w" in the procps and "who"
in the coreutils packages.

utmp and wtmp do have proper data, 
Other utils (ls, utmpdump) handle long file names
correctly.

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

How reproducible:
Always


Steps to Reproduce:
1. create user a12345678901234567890 using adduser or redhat-config-users
2. ls -la /home :observe home directory name and owner/group are shown
properly in full length
3. log in as that user
4. use w, who and observe you show only up as a1234567
5. logout
6. use last to observe you show only up as a1234567
   (which may be confusing, if, by coincidence, another user on the
   system is named a1234567
  
Actual results:
see above

Expected results:

login names should be shown in full length.If this is not
feasible for optical reasons (columns), the output should
mark them as cut off, and a command line option to display
them using the full name (distorting columns if needed)
should be available.


Additional info:

I know that historically, Unix had a 8char username limit. However
I thought these days were long gone. And especially with 32bit UIDs...

Comment 1 Mario Lorenz 2004-04-21 14:15:23 UTC
Typo: Make this "Other utils (ls, utmpdump) handle long login names
correctly"


Comment 2 Bill Nottingham 2005-09-21 19:14:33 UTC
Red Hat strives to work within the community of upstream open source projects.
This allows us to reduce the likelihood of regressions between releases as well
as to benefit from features and fixes as development moves forward. This change
would require a significant divergence from the upstream project and is
therefore being rejected.

The upstream site is ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/; they may
be amenable to this suggestion.

Comment 3 Bill Nottingham 2005-11-01 21:52:20 UTC
*** Bug 172247 has been marked as a duplicate of this bug. ***


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