今天在linux環(huán)境下運行wireshark抓包,安裝好wireshark后,開始抓包總是報錯,內(nèi)容如下:
創(chuàng)新互聯(lián)是專業(yè)的梅河口網(wǎng)站建設(shè)公司,梅河口接單;提供成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè),網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進行梅河口網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
The capture session could not be initiated (failed to set hardware filter to promiscuous mode)
Please check to make sure you have sufficient permissions, and that you have
查詢解決方法,結(jié)果是將選項中的混雜模式關(guān)閉,關(guān)閉后仍然報錯,繼續(xù)查詢,突然想起來可能是用戶權(quán)限問題,然后用sudo wireshark打開wireshark就正常了,但是wireshark官方不推薦這么做:
Running as user "root" and group "root".
This could be dangerous.
dumpcap需要root權(quán)限才能使用的,以普通用戶打開Wireshark,Wireshark當(dāng)然沒有權(quán)限使用dumpcap進行截取封包。
所以用另一種方法,改變/usr/share/dumpcap的group,添加一個group:wireshark,chgrp到wireshark組,再改成4755權(quán)限,這樣方便權(quán)限控制,具體步驟如下:
1、添加用戶組,我以wireshark為例
sudo groupadd wireshark
2、將dumpcap更改為wireshark用戶組
sudo chgrp wireshark /usr/bin/dumpcap
3、讓wireshark用戶組有root權(quán)限使用dumpcap
sudo chmod 4755 /usr/bin/dumpcap
4、將自己加入wireshark用戶組,我的用戶是godben,你添加需要更改這個。
sudo gpasswd -a godben wireshark
這樣就完成,你可以使用自己的用戶打開Wireshark,并且有權(quán)限進行操作了。
新聞名稱:非root用戶正常使用wireshark方法
轉(zhuǎn)載來于:http://chinadenli.net/article48/jegoep.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供Google、網(wǎng)站建設(shè)、營銷型網(wǎng)站建設(shè)、網(wǎng)站維護、關(guān)鍵詞優(yōu)化、網(wǎng)站收錄
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)