Wireshark-dev: Re: [Wireshark-dev] ChmodBPF problem - Fixed!
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 12 Jun 2009 11:16:56 -0700

On Jun 12, 2009, at 8:40 AM, Gerald Combs wrote:

According to System Startup Programming Topics
(http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/StartupItems.html )
RunService should be used. It's defined in /etc/rc.common, which is
included at the top of the script.

Does your system have /etc/rc.common, and does it define RunService?

...and are you trying to run the script directly from the command line, or did you install it as a startup item and then either manually change the permissions of the BPF devices or do "sudo SystemStarter start ChmodBPF"? (You have to do the latter because merely installing a startup item doesn't provoke it to be run; when you next reboot, it'll be run automatically at startup time.)

ChmodBPF is *NOT* intended to be run from the command line; it's intended to be run as a startup item, as per the document Gerald cited.