ubuntu12.04 Wireshark:no interface can is used for capturing

Source: Internet
Author: User
Tags chmod

http://www.dickson.me.uk/2012/09/17/installing-wireshark-on-ubuntu-12-04-lts/


Reference http://www.dickson.me.uk/2012/09/17/installing-wireshark-on-ubuntu-12-04-lts/

"No interface can be used to capturing in this system with the current configuration.".

The following steps would rectify this.


sudo usermod-a-g wireshark zhangbin sudo chgrp wireshark/usr/bin/dumpcap
sudo chmod 777/usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip/usr/bin/dumpcap
sudo getcap/usr/bin/dumpcap


To change to 777, before is 750, otherwise there will be no permissions:



====================================================

zhangbin@ubuntu32:~$ sudo su
[sudo] Password for zhangbin: 
root@ubuntu32:/home/zhangbin# sudo apt-get install Wireshark
Reading package. .. Done
Building Dependency tree       
Reading state information ... Done
Wireshark is already the newest version.
0 upgraded, 0 newly installed, 0 to-remove and not upgraded.
root@ubuntu32:/home/zhangbin# sudo groupadd wireshark
root@ubuntu32:/home/zhangbin# sudo usermod-a-g wireshar K zhangbin
root@ubuntu32:/home/zhangbin# sudo chgrp wireshark/usr/bin/dumpcap
root@ubuntu32:/home/zhangbin# sudo chmod 750/usr/bin/dumpcap
root@ubuntu32:/home/zhangbin# sudo setcap cap_net_raw,cap_net_admin=eip/usr/bin/ Dumpcap
root@ubuntu32:/home/zhangbin# sudo getcap/usr/bin/dumpcap
/usr/bin/dumpcap = cap_net_admin,cap_net_ RAW+EIP

root@ubuntu32:/home/zhangbin#



root@ubuntu32:/home/zhangbin# sudo chmod 777/usr/bin/dumpcap




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.