比思論壇

標題: ubuntu下安装Wireshark [打印本頁]

作者: wabb44400    時間: 2012-9-18 18:28
標題: ubuntu下安装Wireshark
ubuntu下安装Wireshark



Wireshark是一款非常流行的协议分析软件。自然可以网络抓包的需求。



sudo apt-get install wireshark


出于安全方面的考虑,普通用户不能够打开网卡设备进行抓包,wireshark不建议用户通过sudo在root权限下运行,

wireshark为ubuntu(Debian)用户提供了一种在非root下的解决方法。
  

(详细解释可以参考:/usr/share/doc/wireshark-common/README.Debian  http://nariver.com/usr/share/doc/wireshark-common/README.Debian



具体步骤:

sudo dpkg-reconfigure wireshark-common “Should non-superusers be able to capturepackages?”   

选择Yes(默认是no)

在组策略中会出现wireshark组,默认没有任何用户属于这个组,只需把特定的用户加入组中
(需要注销后重新登录来使设置生效)

就可以以该用户来运行wireshark实时抓网络数据包



在wireshark组后添加用户

sudo usermod -a -G wireshark $USER




歡迎光臨 比思論壇 (http://108.170.5.78/) Powered by Discuz! X2.5