So as not to forget
problem
Mac opens wireshark to capture packets and reports an error, showing that the permissions are not allowed
“The capture session could not be initiated on interface ‘en0’ (You don’t have permission to capture on that device).
Please check to make sure you have sufficient permissions.
If you installed Wireshark using the package from wireshark.org, Try re-installing it and checking the box for the “Set capture permissions on startup” item.”
method
1. Terminal input
sudo chmod 777 /dev/bpf*
2. Reopen wireshark and it will be OK