Wireshark as unprivileged user: no interfaces show up in the list (how to fix permanently?)
Sven Aluoor
aluoor at gmail.com
Fri Nov 12 12:40:04 PST 2010
Hi folks
I installed
# port list installed | grep wireshark
wireshark @1.4.1 net/wireshark
When logging with my user account -> no interfaces show up in the list
for capturing (as root it works). The source for this problem are too
less rights on /dev/bpf*
# ls -la /dev/bpf*
crw------- 1 root wheel 23, 0 Nov 11 18:29 /dev/bpf0
crw------- 1 root wheel 23, 1 Nov 11 18:07 /dev/bpf1
crw------- 1 root wheel 23, 2 Nov 11 18:07 /dev/bpf2
crw------- 1 root wheel 23, 3 Nov 11 18:07 /dev/bpf3
I now modify the perms manually, but after reboot it is again default.
Found this quote at Wireshark wiki
(http://wiki.wireshark.org/CaptureSetup/CapturePrivileges):
If the system doesn't support that - Mac OS X's devfs doesn't, you
might have to find some other way to make that happen at boot time,
such as a command in one of the system rc files, or a startup item in
OS X; see the ChmodBPF directory in libpcap 0.9.1 or later for such a
startup item.
This script doesn't exists
# pwd
/opt/local
# find . -iname ChmodBPF
#
How to fix this permanently?
cheers Sven
More information about the macports-users
mailing list