Why some entries of last -a do not show the hostname ?

Solution Verified - Updated -

Issue

  • The command last -a does not show a hostname on all lines as it should:

     -a     Display the hostname in the last column. Useful in combination with the next flag.
    
  • The result is something like:

    root     pts/3        Fri Feb 28 04:15   still logged in
    root     pts/2        Fri Feb 28 04:09   still logged in    
    root     pts/1        Fri Feb 21 04:44   still logged in    user1.serv
    root     pts/0        Fri Feb 21 04:44   still logged in    user2.serv
    

Environment

  • Red Hat Enterprise Linux 6 and above

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content