天天看點

[Linux] ubuntu 安裝 Wireshark

Wireshark是一款非常流行的協定分析軟體。自然可以網絡抓包的需求。

sudo apt-get install wireshark

出于安全方面的考慮,普通使用者不能夠打開網卡裝置進行抓包,wireshark不建議使用者通過sudo在root權限下運作,

wireshark為ubuntu(Debian)使用者提供了一種在非root下的解決方法。

具體步驟:

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

選擇Yes(預設是no)

在組政策中會出現wireshark組,預設沒有任何使用者屬于這個組,隻需把特定的使用者加入組中(需要登出後重新登入來使設定生效)

就可以以該使用者來運作wireshark實時抓網絡資料包

在wireshark組後添加使用者

sudo usermod -a -G wireshark $USER

本文轉自demoblog部落格園部落格,原文連結http://www.cnblogs.com/0616--ataozhijia/p/3919046.html如需轉載請自行聯系原作者

demoblog

繼續閱讀