Ethereal-users: Re: [Ethereal-users] finding and enabling the interface

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 26 Feb 2006 19:03:22 -0800
LEGO wrote:

To enable it each time you login:

create a file with the above commands and make it executable
$ echo '#!/bin/sh' > ~/makebpfreadable
$ echo 'sudo chgrp admin /dev/bpf*' >> ~/makebpfreadable
$ echo 'sudo chmod g+r /dev/bpf*' >> ~/makebpfreadable
$ chmod +x ~/makebpfreadable

Open the "Control Panel" go to "Accouts", choose the "Login Items" tab
click on the "+" sign and add makebpfreadable to the item list.

Or, alternatively, download the source to the current version of libpcap (0.9.4) from http://www.tcpdump.org/, unpack the tarball, and copy the directory ChmodBPF to /System/Library/StartupItems ("sudo cp -r ChmodBPF /System/Library/StartupItems"), which will arrange that it happen when the system boots rather than just when you log in.