Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1391156 - who command returns unknown user
who command returns unknown user
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gdm (Show other bugs)
7.4
All Linux
medium Severity medium
: rc
: ---
Assigned To: Ray Strode [halfline]
Desktop QE
:
Depends On:
Blocks: 1420851 1479818
  Show dependency treegraph
 
Reported: 2016-11-02 12:23 EDT by Chinmay Paradkar
Modified: 2018-05-17 10:39 EDT (History)
4 users (show)

See Also:
Fixed In Version: gdm-3.26.1-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 08:55:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Bugzilla 788784 None None None 2017-10-10 12:57 EDT
Red Hat Product Errata RHBA-2018:0770 None None None 2018-04-10 08:57 EDT

  None (edit)
Description Chinmay Paradkar 2016-11-02 12:23:25 EDT
Description of problem:
The "unknown" user in who and last command appears when running in graphical.target mode. It does not appear when running in multi-user.target mode

Version-Release number of selected component (if applicable):
gdm-3.14.2-12.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. ssh in when no user is logged into the console
2. run 'who -u'
3. run last 

Actual results:
# who -u
(unknown) :0           2016-11-01 15:28   ?          1710 (:0)
root     pts/0        2016-11-02 21:48   .         15132 (10.76.0.219)

Expected results:
# who -u
root     pts/0        2016-11-02 21:48   .         15132 (10.76.0.219)

Additional info:
Upstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=760834

Code is here:
-------------
        if (user_name != NULL) {•
                username = user_name;•
        } else {•
                username = "(unknown)";•
        }•
-------------
Comment 5 Michael Boisvert 2018-01-04 13:07:49 EST
I could not find an unknown user in 3.26.
Comment 8 errata-xmlrpc 2018-04-10 08:55:16 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0770

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