分类: LINUX
2012-10-15 20:07:31
默认情况下,访问网络端口需要root权限,而wireshark的只是/usr/share/dumpcap的一个UI,/usr/share/dumpcap需要root权限,所以没法non-root用户无法读取网卡列表。
解决办法很简单,sudo wireshark
但是wireshark官方不推荐这么做:
Running as user "root" and group "root".
This could be dangerous.
If you're running Wireshark this way in order to perform live capture, you may want to be aware that there is a better way documented at
所以用另一种方法,改变/usr/share/dumpcap的group,添加一个group:wireshark,chgrp到wireshark组,再改成750权限,这样方便权限控制。
注意得注销一下才能生效
官方解决方案http://packetlife.net/blog/2010/mar/19/sniffing-wireshark-non-root-user/