Ethereal-users: Re: [Ethereal-users] Problem running ethereal

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

From: Liam Whalen <lwhalen@xxxxxxxxxxxxx>
Date: Wed, 9 Jul 2003 09:00:46 -0400 (EDT)

On Wed, 9 Jul 2003, Liam Whalen wrote:

>
>
> On Wed, 9 Jul 2003, Brad Hards wrote:
>
> > > > On Mon, 7 Jul 2003 13:24 pm, Liam Whalen wrote:
> > > > > I have downloaded and built ethereal 0.9.13 but whenever I try to run
> > > > > it I get this error
> > > > >
> > > > > bash-2.04# ./ethereal
> > > > > Xlib: connection to ":0.0" refused by server
> > > > > Xlib: No protocol specified
> > > >
> > > > If you do "xhost +localhost", does it work?
> > >
> > > Yes it does thankyou
> > Note that this statement is a potential security problem - you are allowing
> > anyone on that machine to control your desktop. That may not be a problem
> > (eg. if you are the only one who has an account), but you should at least
> > read the man pages for xhost and Xsecurity.
> >
> I just removed the xhost +localhost from my startup script and now when I
> run xhost it doesn't list localhost as allowing to connect anymore however
> I can now run ethereal without the problems mentioned above.  Wierd.  Does

Ok I figured it out. When I was first running ethereal I was trying to run
it as root, because I was root when I did the build.  When I ehtereal
tried to run as root it couldn't connect to my machine because xhost
wasn't configured to let root run on my desktop.  However today I tried
running it as my user account and it starts up fine because as this is my
xdm session I am allowed to connect to the desktop.  Now I have another
problem when I run ethereal under my user session I get the following
error message when I try to start listening for packets.

The capture session could not be initiated (socket: Operation not
permitted).  Please check to make sure you have sufficient permissions,
and that you have the proper interface or pipe specified.

Now it seems to me that I could do xhost +root and then run ethereal as
root and this problem would go away but is there anyway to give my user
account permissions to create sockets?  I'm not sure where this would be
done.

Liam