Root GUI access?
Collins, Kevin (MindWorks) [Contractor]
KCollins "at" chevrontexaco.com
Thu Mar 31 17:11:01 2005
Good to know. Keep in mind that in a multi-user environment, putting
that xhost command in /etc/bashrc has far reaching implications as it
allows anyone on the machine to send an X app to your (or any other
From: Stephen Hinton [mailto:stephenhinton "at" gmail.com]
Sent: Wednesday, March 30, 2005 5:44 PM
To: Collins, Kevin (MindWorks) [Contractor]; p putkowski
Cc: vnc-list "at" realvnc.com
Subject: Re: Root GUI access?
Many Thanks to Kevin C and P Putkowski!
Symptoms: You can log in remotely as any user. If you log in as root
you can run all commands and gui utilities. If you log in as non-root
gui utilities requiring administrator privleges will not display. The
GUI dialog box promopts you for the root password and accepts it, but
the utility window doesn't load. You can su as root in a terminal
window and run text-based privleged commands.
Problem had to do with the localhost net being authorized to connect
to the X-Server
Key error message was:
Xlib: Client is not authorized to connect to Server
Putkowski: Can you tell me where you found that error message (maybe
i'll learn to troubleshoot my own problems)?
Solution: put command 'xhost +localhost' in the /etc/bashrc file
You could just run this command once each session, or put it in the
.bashrc of only users you want to be able to run these tools, but for
my case its easier to go ahead and do it for every user on every
Thanks to Kevin for putting the right command in front of me.
On Wed, 30 Mar 2005 12:37:54 -0800, Collins, Kevin (MindWorks)
[Contractor] <KCollins "at" chevrontexaco.com> wrote:
> Take a look at /etc/X11/gdm/gdm.conf for these parameters:
> One or both need to be true... You'll have to test it out.
> -----Original Message-----
> From: vnc-list-admin "at" realvnc.com [mailto:vnc-list-admin "at" realvnc.com]
> Behalf Of Stephen Hinton
> Sent: Wednesday, March 30, 2005 12:09 PM
> To: vnc-list "at" realvnc.com
> Subject: Root GUI access?
> I have got VNC running as an on-demand service. I can log in
> successfully and get a desktop. However, When I try to open any
> screen that requires root authority I get teh prompt for the root
> password, put that password in, and then the screen never loads.
> Again, This it probably more of a linux problem than a VNC problem.
> I can't figure it out however, and I'd guess someone else has had this
> Using Fedora, with a KDE desktop, but a GDM login manager. XDMCP is
> enabled (otherwise i couldnt get the login screen) and root remote
> login is enabled in GDM
> The end game is to be able to administer entirely by remote, but still
> have the nice GUI tools to work with.
> Just a note for those who are hemoraghing over my desire to log in as
> root via an 'unprotected' VNC session, I am running it through an SSH
> VNC-List mailing list
> VNC-List "at" realvnc.com
> To remove yourself from the list visit: