Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wireshark - you don't have permission to capture on that device mac

I installed Wireshark and during the installation it showed an error but the installation itself completed. When I ran the program and tried to capture packets on my network, it showed this error:

You don't have permission to capture on that device

I'm new to mac so i don't even know how to properly ask.

Could someone help me?

like image 487
martinhajny Avatar asked Dec 13 '16 17:12

martinhajny


People also ask

How do you capture Wireshark on a Mac?

In order to capture packets, you must install the “ChmodBPF” launch daemon. You can do so by opening the Install ChmodBPF. pkg file in the Wireshark . dmg or from Wireshark itself by opening Wireshark → About Wireshark selecting the “Folders” tab, and double-clicking “macOS Extras”.

Can Wireshark run on Mac?

It is free and open-source software that can be used on several platforms like MacOS, Windows, Linux, etc. In this article, we will learn how to install Wireshark on Mac.


1 Answers

According to User: gmale's answer on ask.wireshark.org, he solved his problem in this way and I'm sure that it could solve yours as well. It says:

1- Open Terminal

To see your exact user name (for me that was AliGht)

2- Type 'whoami'

enter image description here

3- execute the following commands:

cd /dev sudo chown AliGht:admin bp* 

and enter your computer password:

enter image description here

4- now type this command:

ls -la | grep bp 

The last command will display a list of files such as:

enter image description here

5- Make sure all of them have your user name and admin as the user/group. For some reason, the last one didn't get assigned properly so I had to run the command:

sudo chown AliGht:admin bpf4 

so the last command fixed my problem as you see in the last image:

enter image description here

Done!

If your WireShark is open then close it and open it again.

All credits of this tutorial goes to user gmale on ask.wireshark.org,

If you want to open WireShark always as administrator then take a look to another post which I created a shortcut for it via Applescript, and this is the only way which you can open the WireShark always as administrator even when you turn off/on your mac.

like image 179
Ali.Ghodrat Avatar answered Sep 21 '22 19:09

Ali.Ghodrat