Wireshark 选择网卡时出错。 The capture session could not be initiated on capture device "en0" (You don't have permission to capture on that device).
前情提要
- 系统 MacBook Air M1 2020 macOS Ventora 13.2
- Wireshark 4.0.3
打开 Wireshark,在选择网卡时出现了错误:The capture session could not be initiated on capture device “en0” (You don’t have permission to capture on that device).
解决办法
错误提示为没有足够的权限,搜索下,可以用以下命令添加权限来解决
1 | sudo chmod o+r /dev/bpf* |