关于一直以来的Wireshark超级用户问题

Linux下安装Wireshark后,无论是通过软件包,还是编译安装,运行wireshark后提示要以超级用户来获取权限,这个问题很多人通过

sudo wireshark

来解决,但是也可以通过添加用户组和修改权限来解决:

我是编译安装的,进入/usr/local/bin/

$ cd /usr/local/bin/

$ ls
2to3 editcap pydoc3 python3.3m randpkt
2to3-3.3 idle3 pydoc3.3 python3.3m-config rawshark
capinfos idle3.3 python3 python3-config text2pcap
dftest mergecap python3.3 pyvenv tshark
dumpcap pcap-config python3.3-config pyvenv-3.3 wireshark

/usr/local/bin$ sudo groupadd wireshark

/usr/local/bin$ sudo chgrp wireshark dumpcap

/usr/local/bin$ sudo chmod 4755 dumpcap

/usr/local/bin$ sudo gpasswd -a myfreedom614 wireshark  此处myfreedom614换成你的用户名

这样运行wireshark就可以顺利获取Interface List了

转载请注明:Open Source Planet » 关于一直以来的Wireshark超级用户问题

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>