Wireshark 选择网卡时出错。 The capture session could not be initiated on capture device "en0" (You don't have permission to capture on that device).

Sometimes your whole life boils down to one insane move.——《阿凡达》

人生的转机有时就得靠一次疯狂的举动。

前情提要

  • 系统 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*