mac下Wireshark报错: you don't have permission to capture on that device


mac下用Wireshark抓包报错you don't have permission to capture on that device

cd /dev
ls -la | grep bp

看到用户组所属

crw-------   1 root       wheel           23,   0  6 23 23:42 bpf0
crw-------   1 root       wheel           23,   1  6 23 23:42 bpf1
crw-------   1 root       wheel           23,   2  6 23 23:43 bpf2
crw-------   1 root       wheel           23,   3  6 23 23:42 bpf3

这样导致上述没有权限问题,需要手动修改,确保所有列表有你的用户名和admin作为用户组。

whoami 命令看你当前用户名
sudo chown 上面看到的用户名:admin bp*

参考:


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM