Wireshark as unprivileged user: no interfaces show up in the list (how to fix permanently?)

Ryan Schmidt ryandesign at macports.org
Fri Nov 12 13:53:35 PST 2010


On Nov 12, 2010, at 14:40, Sven Aluoor wrote:

> I installed
> 
> # port list installed | grep wireshark
> wireshark                      @1.4.1          net/wireshark

"port list" does not do what you think it does. See:

http://trac.macports.org/wiki/FAQ#portlist

The command you should run instead in this case is:

port installed 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?

http://trac.macports.org/ticket/26293




More information about the macports-users mailing list