我的目标是在Amazon Linux AMI中用tshark捕获数据包。 在命令行inputtshark时出现错误:
"tshark: There are no interfaces on which a capture can be done"
如何从Wireshark设置Linux的非root用户实现解决scheme
$ sudo apt-get install wireshark $ sudo dpkg-reconfigure wireshark-common $ sudo usermod -a -G wireshark $USER $ gnome-session-quit --logout --no-prompt
在亚马逊Linux AMI(这不是Ubuntu)? 谢谢。
用root priveleges运行tshark。 看看是否列出了可能的捕获界面。
$ sudo tshark -D