Install and use Wireshark in Ubuntu

Source: Internet
Author: User
It is easy to install wireshark with UbuntuSoftwareCenter, and the speed of using ipv6 software source in CERNET is also good. However, wireshark cannot be used without any settings after installation. When wireshark is enabled, "therearenointerfacesonwhichacapturecanbedone" is displayed ". This is because by default, normal users do not have the permission to intercept network data.

Installing wireshark with Ubuntu Software Center is still very easy, and the speed of using ipv6 in CERNET is also very good.

However, wireshark cannot be used without any settings after installation. When wireshark is enabled, the system prompts "thereare no interfaces on which a capture can be done ".

This is because by default, normal users do not have the permission to intercept network data.

Of course, you can run sudowireshark to use wireshark normally, but this is not a good method, as wireshark prompts:

"Running as user" root "andgroup" root ".

This cocould be dangerous.

If you're running Wireshark this way inorder to perform live capture, you may be want to be aware that there isa better way too ented

/Usr/share/doc/wireshark-common/README. Debian"

For more information, see/usr/share/doc/wireshark-common/README. Debian and network:

Wireshark uses the privilegeseparation policy. Different processes have different priorities.

Role
PrivilegeLevel
Description
 
Capture
OS-dependent
Readslive capture data
 
Dissection
Non-privilegeduser, possibly chrooted
Dissectspacket data. The majority of Wireshark's security-related bugshave been in its dissection code.
 
Filesystem
Normaluser
Normalfile-handling, e.g. reading and writing capture files, preferences, etc.
 

The dumpcap process that captures real-time data requires the permissions of the Super User. To enable normal users to use wireshark normally, we recommend that you add users to the wireshark group so that when you run wireshark, The dumpcap process has a high priority, other related processes still have the permissions of common users.

Run sudo dpkg-reconfigurewireshark-common to create a wireshark user group.

Add users who need to run wireshark to the wireshark group:

Sudo usermod-a-G wireshark $ USER

Then, log on again as the user.

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.