Networking Forums

Networking Forums > Computer Networking > Linux Networking > Ethereal - not sufficient permission?

Reply
Thread Tools Display Modes

Ethereal - not sufficient permission?

 
 
notgiven
Guest
Posts: n/a

 
      03-23-2005, 04:02 PM
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.

 
Reply With Quote
 
 
 
 
Steve Horsley
Guest
Posts: n/a

 
      03-23-2005, 05:02 PM
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 - it's the
act of sniffing the network that's restricted.

Open a console window and enter the command "su" (without the
quotes). At the prompt, enter the root password. Now you have a
command prompt running with root privilege. Enter the command
"ethereal", ignore all the rubbish that scrolls by, adn you should
get a working ethereal window pop up. Don't close the command
prompt window until you have finished with ethereal, or it
will disappear again.

Use "exit" to drop out of root priv at the prompt as soon as
you can - leaving a root prompt open is dangerous (mistakes
in there have the rights to do lots of damage).

Steve
 
Reply With Quote
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      03-23-2005, 06:14 PM
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.


You can't capture packets if you are not root. Imagine the mess
that would be if any user could capture the packets in a host.

> Thanks in advance.


Regards.

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Reply With Quote
 
Ian Northeast
Guest
Posts: n/a

 
      03-23-2005, 07:45 PM
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
 
Reply With Quote
 
Steve Horsley
Guest
Posts: n/a

 
      03-23-2005, 08:07 PM
Ian Northeast wrote:
>>
>>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.


True.

>
> 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.
>

For the paranoid - there have been buffer overflow errors in the Ethereal
packet decoders in the past that could in theory allow an attacker who
knew he was being sniffed with Ethereal to send specially constructed
packets that would execute code of their choice. So only using
Ethereal for examining capture files in userland does actually
increase your security.

I'm more lazy than paranoid though, so have never bothered with this
two-step approach.

> 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


Ooh, nasty. I've never seen that on either Linux or Windoze.

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Give copy permission without execute permission Sam Windows Networking 0 01-09-2007 01:44 AM
Would the Dell B130 be sufficient to run MSN Premium bskull69 Wireless Internet 2 03-19-2006 04:51 PM
Can't launch ethereal--- bash: ethereal: command not found krakov@mailinator.com Linux Networking 1 06-20-2005 10:16 AM
Linksys router: sufficient? George Bozovic Wireless Internet 4 11-28-2003 07:44 PM
WRT54G Firewall -- Is it sufficient? Yves Thomas Wireless Internet 2 07-13-2003 01:08 AM



1 2 3 4 5 6 7 8 9 10 11