Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-15 Thread Jesse Kempf
Guy Harris wrote: On Oct 14, 2008, at 9:30 AM, Max Laier wrote: > Depends on the platform you are on. On FreeBSD all you need is read > write > permission to the /dev/bpf* devices. Also true in NetBSD, OpenBSD, DragonFly BSD, Mac OS X, and, I think, AIX. (And, at least with some versions

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-15 Thread Guy Harris
On Oct 14, 2008, at 9:30 AM, Max Laier wrote: Depends on the platform you are on. On FreeBSD all you need is read write permission to the /dev/bpf* devices. Also true in NetBSD, OpenBSD, DragonFly BSD, Mac OS X, and, I think, AIX. (And, at least with some versions of libpcap, all you ne

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-15 Thread Damien ANCELIN
I doesn't know POSIX capabilities and it seems to be very interesting. I think it's a good first step, but I see a potential problem : if I give CAP_NET_ADMIN capability to a user, he can do what he wants on all ethernet interfaces, isn't it ? In my case, I have for example 1 interface used for

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-15 Thread Gerald Combs
Under Linux you can use POSIX capabilities to capture as non-root. CAP_NET_RAW lets you capture, and CAP_NET_ADMIN lets you use promiscuous mode. Damien ANCELIN wrote: > To give you more informations : > - "metrology platform" will be a computer that can be used by many users > to capture packets

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-15 Thread Damien ANCELIN
To give you more informations : - "metrology platform" will be a computer that can be used by many users to capture packets (coming from a mirroring port of a switch). - It's currently running on an linux debian. It seems there is no common manner to do this in a simple way (I will have a look

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-14 Thread sthaug
> > As I'm developping on libpcap to provide a metrology plateform, I was > > wondering if there is a manner to enable a specific user (or a specific > > group) to capture from a network interfaces (even in promiscuous mode), > > without using sudo. > > I'm trying to do this with udev, but I'm not

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-14 Thread Michael Richardson
> "Damien" == Damien ANCELIN <[EMAIL PROTECTED]> writes: Damien> As I'm developping on libpcap to provide a metrology Damien> plateform, I was wondering if there is a manner to enable a Damien> specific user (or a specific group) to capture from a Damien> network interfaces (ev

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-14 Thread Robin Sommer
On Tue, Oct 14, 2008 at 18:30 +0200, Max Laier wrote: > Depends on the platform you are on. On FreeBSD all you need is read write > permission to the /dev/bpf* devices. A long time ago, I did a hack for Linux which allows to give a specific group capture permission without becoming root. 2.6.1

Re: [tcpdump-workers] Capturing without having superuser rights

2008-10-14 Thread Max Laier
On Tuesday 14 October 2008 17:33:13 Damien ANCELIN wrote: > As I'm developping on libpcap to provide a metrology plateform, I was > wondering if there is a manner to enable a specific user (or a specific > group) to capture from a network interfaces (even in promiscuous mode), > without using sudo.

[tcpdump-workers] Capturing without having superuser rights

2008-10-14 Thread Damien ANCELIN
Hi list, As I'm developping on libpcap to provide a metrology plateform, I was wondering if there is a manner to enable a specific user (or a specific group) to capture from a network interfaces (even in promiscuous mode), without using sudo. I'm trying to do this with udev, but I'm not shure