On Wed, 23 Mar 2005 18:02:55 +0000, Steve Horsley wrote:
> notgiven wrote:
>> I have installed the pcap library and ethereal on a new installation of
>> Mandrake Linux 10.1 (with powerpack, which is where I got the library
>> and ethereal.) When I start Ethereal and attempt to perform a capture I
>> get an error message saying the socket operation is not permitted -
>> either I do not have sufficient permissions or maybe I don't have the
>> pipes set up correctly. Do I need special permissions to access the
>> library? Or what? How do I do this? I am extremely newbie as regards
>> Linux.
>> Thanks in advance.
>>
> You need root (administrator) privilege to use Ethereal
Only in packet capture mode. You can run it as a user to open and examine
a previously recorded packet trace.
> - it's the act of sniffing the network that's restricted.
Yes.
My preference is to capture the packets using tcpdump as root on the
command line (with the -w <file> -s 1500 flags), then ship the file to my
workstation, run ethereal as non root and open it. I prefer to avoid
running X apps as root whenever possible.
Some of my servers don't even have ethereal installed. They all have
tcpdump.
I've never had ethereal misbehave on Linux, but on AIX the IBM built
ethereal binary tends to crash the whole system if run in packet capture
mode. This is probably why I'm a bit paranoid about it

Of course this
isn't reportable as ethereal is part of the unsupported Open Source
software collection IBM provide. But tcpdump is a supported part of the
OS. And it doesn't crash it
The only time I run ethereal in packet capture mode is if I want to watch
them in real time. This isn't practical in most situations as they come
too quickly.
Regards, Ian