在虚拟机unbuntu中,进行wireshark抓包,出现:no interface can be used for capturing in this system with the current configuration错误!!!
错误原因:
权限不够!
解决办法:
1.可以通过执行下面的命令来服务于/usr/bin/dumpcap权限
sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
2.提升权限运行程序
sudo wireshark
3.配置
sudo dpkg-reconfigure wireshark-common
选择“YES”, 然后将当前用户加到用户组中
sudo adduser $USER wireshark
重启机器后,Wireshark可以正常使用。
参考资料:
1, http://www.cnblogs.com/zombiecc/p/3412063.html
2, https://askubuntu.com/questions/458762/how-to-enable-wireshark-without-running-as-root-in-trusty-14-04