[SOLVED] root entry appeared in gdm list

General support questions

[SOLVED] root entry appeared in gdm list

Postby ohw0571 » 2012/02/21 08:28:15

Hello,

by default, the root account is hidden from the user list displayed by the graphical greeter (gdm) in EL 6.2. Yesterday I wanted to restart the X server, so I logged in to a text console (CTRL-ALT-F2) as root and initiated an init 3 > init 5 cycle. When X came up again, I found a root entry in gdm! But even after logging out of the root account and rebooting, this entry is still present. It seems that gdm somehow "remembers" that the root account has been used - nota bene: on a text console, not in graphical mode!

Any ideas how to get back to the default behaviour?
As a workaround I could hide the root entry explicitly by putting an "Exclude" statement in /etc/gdm/custom.conf but I would prefer to know (and eliminate) the real cause of the problem :-)

Thanks in advance
Oliver
ohw0571
 
Posts: 120
Joined: 2008/10/05 12:24:17

[SOLVED] root entry appeared in gdm list

Postby pschaff » 2012/02/21 20:51:11

I don't know what caused the root entry to appear, but I have done the "telinit 3 ; telinit 5" sequence many times without that effect. Just tried it again to be sure.

Logging into the GUI as root from GDM using "Other ..." (not recommended) does not make it appear on the list either.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: root entry appeared in gdm list

Postby ohw0571 » 2012/02/22 09:42:51

Yes, I also tried to reprocude the effect on other machines - without success. At first I thought gdm might be evaluating /var/log/lastlog but this does not seem to be the case. Two things I should maybe add:
1. Admittedly this observaton was on RHEL 6.2 (but of course chances are the problem could occur on CentOS 6.2 as well)
2. If I remember correctly, my ALT-F7 command on the external keyboard of my Thinkpad put the machine into sleep mode at first instead of switching to the X display (so it was probably interpreted as Fn-F7) - and after waking up this root entry was visible at first with a "logged in" comment and a green checkmark. After logging out root from the text console, the "logged in" tag was gone, but the root entry persisted.

So the question is: which files does gdm read to determine which users to offer in the list?

Oliver
ohw0571
 
Posts: 120
Joined: 2008/10/05 12:24:17

Re: root entry appeared in gdm list

Postby pschaff » 2012/02/22 16:30:58

I don't know but see
Code: Select all
rpm -ql gdm
for the list of installed files.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: root entry appeared in gdm list

Postby ohw0571 » 2012/03/07 11:07:20

Hello,

I have been able to find the reason for this behaviour. If interested, please refer to the upstream bug report
https://bugzilla.redhat.com/show_bug.cgi?id=796698

As far as CentOS is concerned, this issue may be considered SOLVED.

Best regards,
Oliver
ohw0571
 
Posts: 120
Joined: 2008/10/05 12:24:17

Re: [SOLVED] root entry appeared in gdm list

Postby pschaff » 2012/03/07 12:27:41

Apparently the workaround is: "So for now the solution is to add root to the exclude list in custom.conf."

Thanks for reporting back. Marking this thread [SOLVED] for posterity.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 7 guests