Ethereal-users: Re: [Ethereal-users] Run as root not as any other user

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

From: Cameron Kerr <cameron.kerr@xxxxxxxxxxxxxxx>
Date: Wed, 16 May 2001 20:31:49 +1200
cody wrote:
> 
> Hello,
> I 've installed ethereal 0.8.17 on my Mandrake 8.0 machine. I can start
> capturing packets if I run it as root but I failed to do so I run it as
> a normal user. ( I can run the program but fail to start capturing).
> 
> An error message "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 sepcified".
> My linux box has beeb comfigured as follows:
> 
> 1.Mandrake 8.0 with 2.4.3-20mdk kernel
> 2.libpcap version : libpcap0-0.6.1-5mdk
> 3. NIC driver :   ne2k-pci ( I am using an PCI version of NE2000 NIC)
> 
> Could you help me on the above issue ? I look forward to hearing from
> you!

To open a socket of this type, you need to have the effective rights of
the
root user.

Set ethereal to be setuid

chmod +s `which ethereal`

Note that this could be a security risk.

-- 
Cameron Kerr -- cameron.kerr @ paradise.net.nz
Praise Slackware, our baud and saviour!
--