Ethereal-users: Re: [Ethereal-users] Xlib: connection to ":0.0" refused

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jose Manuel Cano Garcia <jcgarcia@xxxxxx>
Date: Tue, 2 Sep 2003 15:39:00 +0200
The problem is that you should give permission to other users (i.e. the 
superuser) to use your open graphical X console. To do that, use the "xhost" 
command. Once you log into the X environment, just open a text console and 
type:

xhost +

This give permission to any user on any machine to use your graphic terminal. 
Then, you can do "su" and run ethereal as root. When you log-out, the access 
permission is unset. 

Please, note that the previous command give permission to ANY user in ANY host 
to send windows to your grahical console. If you prefer to restrict the 
access only to users in the local host or to given users, please refer to the 
"xhost" command manual.

	Best Regards, 

		Jose Manuel 

On Monday 01 September 2003 16:55, Nelly Pernot wrote:
> When I logged as root, I have no problem to run ethereal.
> But when I logged as user, I open a shell by "su" or "su -" and run
> ethereal, I obtain this error message:
>
> Xlib: connection to ":0.0" refused by server
> Xlib; Client is not authorized to connect to Server
>
> Gtk-Warning **: cannot open display: :0
>
> I work on a debian 3.0
>
> What can I do
> Thanks