[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Magic cookies and running programs under X as root



On Sat, 27 Jan 2001, Christopher R. Barry wrote:

>   Xlib: connection to ":0.0" refused by server
>   Xlib: Client is not authorized to connect to Server
>   Error: Can't open display: :0.0
> 
> I guess tonight I finally want to get around to figuring out how to stop this
> from happening. What do I do so I can run programs as root?

The following works for me. All on one line in case of wordwrap.

XAUTHORITY=/home/username/.Xauthority;DISPLAY=:0.0;export XAUTHORITY DISPLAY


Terry.

-----------------------------------------------------------------
* Selterra Communications                     info@selterra.com *
-----------------------------------------------------------------



Reply to: