Install wireshark

 

1, the installation
root installation:
yum -y install wireshark

yum -y install wireshark-the GNOME

Installation will be completed in the desktop main menu Application-> Internet generation wireshark shortcuts.
We can also in the path / usr / share / applications / Wireshark Network Analyzer.desktop copy to the desktop.
2, start
start as root, everything is normal!
After starting as a normal user prompt start wireshark:

Could not RUN / usr / sbin / dumpcap in Child Process: Permission denied
Are you Memeber of 'wireshark' Group the Try running 'the usermod -a -G wireshark <username>' AS root?.

At the same time, there is no interface listed.
This is because the current user does not have permission to run / usr / bin / dumpcap caused. / usr / bin / dumpcap is Wireshark packet capture engine.

将/usr/sbin/dumpcap的组改为普用用户的组,再运行,没有那个提示了,但是还是没有interface列出来。

Or


First with the ls command to look at dumpcap rights situation:
the XY @ Debian-vm-1: -lah ~ $ ls / usr / bin / dumpcap
-rwxr-XR, 1 root wireshark 95K 1 Yue 23 01:03 / usr / bin / dumpcap

can see, dumpcap wireshark belong to the group, and the group is running permission, as long as the user ua added to the wireshark group to run dumpcap.
Look at the current user ua belongs to which group, use the command groups,
ua @ Debian-vm-1: ~ $ groups
ua root cdrom CFTD Audio Video plugdev DIP NETDEV the lpadmin the Bluetooth Scanner

can see, the user does not belong ua wireshark group. Use the following command to add the user ua wireshark group:
sudo wireshark ua the usermod -a -G

-a represented as a set of additional user, user ua about to join a group, but not removed from the original group.
-G parameter followed behind the group name to be added.
Note: After performing the above operations, the need to restart
then execute: setcap cap_net_raw, cap_net_admin + eip / usr / sbin / dumpcap
so ok.

Guess you like

Origin www.cnblogs.com/wangdidi/p/10966081.html