linux抓包提示没有权限,linux下wireshark不用sudo权限抓包包
ubuntu安裝了wireshark,發現打不開網絡接口,后來從網上得知要用sudo從命令行執行,確實可以,但是執行過程中一直要開一個命令行窗口,不爽,想直接用單擊圖標的方法運行之,在網上查詢找到以下兩個方法,
1.這個主要涉及到安全的問題,可以開啟非超級用戶模式,這樣就可以直接使用普通用戶進行包采集了。具體操作如下:
sudo dpkg-reconfigurewireshark-common(出現一個帶顏色的對話框,用方向鍵把紅色指示塊移到YES上回車就ok了)
sudo adduser yournamewireshark (把yourname換成你自己的用戶名)
這樣就可以了~~
2. First, create awireshark group :~$ sudo groupaddwireshark Second, add yourusername to the wireshark group :~$ sudo usermod -a -Gwireshark yourusername Third, change groupownership of dumpcap to wireshark group :~$ sudo chgrpwireshark /usr/bin/dumpcap Fourth, set filepermissions of dumpcap to 754 (rwx for user, r-x for group) :~$ sudo chmod 754/usr/bin/dumpcap Fifth, enable filecapabilities for dumpcap :~$ sudo setcap'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap You may also need torun dpkg-reconfigure for wireshark-common if you install wireshark or tshark asa package through Synaptic and enable packet capture for non-root users :~$ sudodpkg-reconfigure wireshark-common
總結
以上是生活随笔為你收集整理的linux抓包提示没有权限,linux下wireshark不用sudo权限抓包包的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 小米MIX Fold 3信息汇总:澎湃芯
- 下一篇: 阿里2024财年第一季度营收2341.6