Re: error running X apps as root - > Xlib: connection to ":0.0" refused by server

From: I R A Darth Aggie (darthaggie_at_cflarg.arg)
Date: 02/28/04


Date: 28 Feb 2004 16:59:05 GMT

On Sat, 28 Feb 2004 03:01:06 +0100 (CET),
Vincent Zweije <vzweije@sense.znet>, in
<c1osp2$lcf$1@love.sense.znet> wrote:
>+ In article <pan.2004.02.27.02.31.52.790647@netscape.net>, Phillip Brown
>+ <phillipbrownau@netscape.net> wrote:
>+
>+ || On Fri, 27 Feb 2004 01:56:27 +0000, JT wrote:
>+ ||
>+ || > If I login as a regular user, but attempt to run an app as root from the
>+ || > console I get the following error:
>+ || > -------------------------------------------
>+ || > root@boootay:~# synaptic
>+ || > Xlib: connection to ":0.0" refused by server
>+ || > Xlib: No protocol specified
>+
>+ || > Can someone help me get past this error. There are certain apps I would
>+ || > like to be able to run as root without having to logout of my regular user
>+ || > X session.
>+
>+ || to do this, as the user who you originally logged in as, you run 'xhost
>+ || +localhost' or you may have to do 'xhost +<your hostname>'
>+
>+ Hmm... host-based authentication... evil.
>+
>+ Try a script like xsu, sux, or xroot. Read the Remote X Apps mini-HOWTO.

Alternatively, you could do things like:

su (no arguments)

ssh -X -l root localhost <xapp>

or perhaps Xnest.

James

-- 
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.


Relevant Pages