Missing IP information in `last` command output on pts logins

Solution Verified - Updated -

Issue

When user run script command, we can see pts login entries that do not have a IP address associated with them.

# last
root     pts/1                         Tue Aug  6 17:38 - 17:38  (00:00)          <===
root     pts/0        192.168.122.1    Tue Aug  6 14:21   still logged in   
reboot   system boot  3.10.0-693.el7.x Tue Aug  6 23:20 - 17:38  (-5:-41)   

Environment

Red Hat Enterprise Linux 5
Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 7

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