Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At each reboot, the permissions on the network devices /dev/bpf* are changed.

As a developer, I want write acccess on these files. This can easily be fixed with a chmod.

What is the most elegant solution to fix this issue permanently?

share|improve this question
up vote 2 down vote accepted

Wireshark ships a StartupItem that does just that; however, the StartupItems API is deprecated:

 The SystemStarter utility is deprecated.  System services should instead
 be described by a launchd.plist(5).  See launchd(8) for more details.
 The launchd utility is available on Mac OS X 10.4 and later.

 In earlier versions of Mac OS X, the SystemStarter utility is used to
 start, stop, and restart the system services which are described in the
 /Library/StartupItems/ and /System/Library/StartupItems/ paths.

So, since you're asking for "the most elegant solution", that would be a launch daemon.

I haven't tried the following code, but it should be roughly correct.

Create a file /Library/LaunchDaemons/

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

And a file /Library/PrivilegedHelperTools/

chgrp admin /dev/bpf*
chmod g+rw /dev/bpf*

Both should be owned by root:wheel. The first should be 644; the second 755 (600 and 700, respectively, will probably do as well).

You can use launchctl load -w /Library/LaunchDaemons/ to try it without a reboot.

share|improve this answer
[launchd-dev] About the ServiceIPC key: On Leopard and later, you can treat the ServiceIPC key as being inferred through the presence of a Sockets or MachServices dictionary. There's no need to explicitly specify it. – user495470 Aug 11 '11 at 11:43
Hadn't actually meant to leave that in there, since it should be irrelevant, but thanks. :) – Sören Kuklau Aug 11 '11 at 14:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.