Ethereal-users: Re: [ethereal-users] Superuser???

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

From: Gerald Combs <gerald@xxxxxxxx>
Date: Sat, 24 Jul 1999 14:17:27 -0500 (CDT)
On Sat, 24 Jul 1999, Laurent Deniel wrote:

> Usually capturing network packets requires superuser privileges. But if the
> appropriate network device has the correct rights, a simple user can use
> ethereal. The appropriate device is machine-dependent but should be /dev/dlpi
> on solaris ? (I don't have a solaris box here to check that).

  Solaris (2.6, at least) uses DLPI but it doesn't have a dlpi device.
Instead, you must open the interface driver directly.  E.g. to listen on
hme0, you would have to modify the permissions on /dev/hme.  I verified
this with a quick experiment on a Solaris box here, and after enabling
read-write permissions on the device, I could capture just fine as a
normal user.  Read-only permissions didn't work.