In RHEL5, 'last' command truncates usernames larger than 8 characters. How to fix it?

Solution Verified - Updated -

Issue

Command last truncates usernames larger than 8 characters. When try to use the parameter -w (wide) it reports that it is an invalid option:

#last -w
last: invalid option -- w
Usage: last [-num | -n num] [-f file] [-t YYYYMMDDHHMMSS] [-R] [-x] [-o] [username..] [tty..]

Why do the last command truncate usernames that contains more than 8 characters in RHEL 5?

Environment

  • Red Hat Enterprise Linux 5.5
  • SysVinit-2.86-16.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In