Fix Wireshark Permission Error on macOS: ChmodBPF Guide
ChmodBPF fixes Wireshark's permission error on macOS by granting your user account access to Berkeley Packet Filter devices. Install it via the Wireshark macOS package or Homebrew, then add your user to the `access_bpf` group and restart your Mac. If the error persists, manually run `sudo chmod 644 /dev/bpf*` to restore device permissions.
Fix Wireshark Permission Error on macOS: ChmodBPF GuideAndrew Baker's Technology Blog Posts, 14/Jan/2023
https://andrewbaker.ninja/2023/01/14/fix-wireshark-permission-error-on-macos-chmodbpf-guide/
If you see the error “The capture session could not be initiated on the device “en0” (You don’t have permission to capture on that device)” when trying to start a pcap on wireshare you can try installing ChmodBPF; but I suspect you will need to follow the steps below:
$ whoami
superman
$ cd /dev
/dev $ sudo chown superman:admin bp*
Password:
$ ls -la | grep bp
crw------- 1 cp363412 admin 0x17000000 Jan 13 21:48 bpf0
crw------- 1 cp363412 admin 0x17000001 Jan 14 09:56 bpf1
crw------- 1 cp363412 admin 0x17000002 Jan 13 20:57 bpf2
crw------- 1 cp363412 admin 0x17000003 Jan 13 20:57 bpf3
crw------- 1 cp363412 admin 0x17000004 Jan 13 20:57 bpf4
/dev $
Fantastic, worked for me on the first try. Thank you very much.
I do not use WireShark regularly but whe I do I NEED it!
Thank you Andrew for your fix of my ‘The capture session could not be initiated on capture device “en0” (You don’t have permission to capture on that device)’
Regards, Dave
This really should be top of the list in Google results!
Fixed my issue in a jiffy.
Thanks.
It didn’t work for me. (MacOS 14.1.2)
I did the following to fix it:
– uninstall the package ChmodBPF by running Uninstall ChmodBPF.pkg
– Goto users and groups under settings (on your Mac, choose Apple menu > System Settings, then click Users & Groups in the sidebar. (You may need to scroll down.) Click the Add Group button. (You may need to scroll down.) and create a group: “access_bpf”, click on the information “i” and flip the switch next to your username.
– Install ChmodBPF by running ChmodBPF.pkg