You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not much of an issue, but more of a documentation change. It is POSSIBLE to run without using sudo.
On OSX, all applications using libpcap use the BPF (Berkeley Packet Filter) devices (/dev/bpf*). Normally, only root has rw- access to them. With a simple change, we can permit any user on the system to use them.
# sudo chmod +r /dev/bpf*
This is probably not the smartest idea on a multiuser system. You may wish to create a group (read_bpf, for example), add yourself to it, and give that group read-permission.
Activity
hortinstein commentedon Dec 1, 2015
thank you for pointing this out. i will look at a good place to put this in the documentation!
xraken commentedon Feb 14, 2016
You can do this on Linux to run without sudo every time (with some caveats):
/usr/bin/nodejs is where my nodejs is installed.
The big caveat is of course you are granting elevated Network privs to all of nodejs.
KrisHedges commentedon May 22, 2016
So... I found that doing this on OSX is only a temporary solution. Upon restart these permissions are reset.
Bummer.
lukaskollmer commentedon Sep 3, 2016
@KrisHedges put it in a cronjob to add the required permissions at launch?
KrisHedges commentedon Sep 3, 2016
Awesome, I'll check it out.