Wireshark setting interface "There is no interfaces on which a capture can is done"

Source: Internet
Author: User

Wireshark Setting interface "There is no interfaces on which a capture can is done"

Workaround:

The Wireshark software is installed on the computer today, and when interface is set, "There is no interfaces on which a capture can is done" prompts that no one network interface is ready.  This hint is obviously wrong, my network card is clearly able to surf the internet, how is the Internet interface not ready? I think it should be related to the normal user rights under Linux. Google on the internet a bit, found a solution to the problem, now sorted down for later use.

Idea, that is, the problem and permissions, then the solution can not have two points, one is to use root directly, so that you can have sufficient permissions to run any program, but it is obviously not secure, and another way is to give ordinary users the Wireshark of the permissions by Suid GUID.   This is relatively safer than that. The first method: Log in using the root user [email protected]:~$ sudo wireshark The second way: by means of a GUID, the current normal user can run this program.[email protected]:~# groupadd-g Wireshark# Create a new user group named Wireshark, 130 is GID, this number is not fixed, please review the/etc/group file to see what the maximum GID is, then add 1. [Email protected]:~# usermod-a-G Wireshark xiaoshancun# Add the current user Xiaoshancun to the Wireshark group. Make it a new team member. [email protected]:~# chgrp Wireshark/usr/bin/dumpcap# Change the/usr/bin/dumpcap program's genus Group to Wireshark. [email protected]:~# chmod 4750/usr/bin/dumpcapModify the permissions for/usr/bin/dumpcap to 4750 to add suid permissions.       [Email protected]:~# setcap Cap_net_raw,cap_net_admin=eip/usr/bin/dumpcapmodification can not be used directly, you need to re-login. You can use the following command if you do not want to log in again.     [email protected]:~# newgrp wireshark after event, you can use the normal user to execute the Wireshark program.

Wireshark When setting interface "There is no interfaces on which a capture can is done"

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.