Solve the permission problem of deepin using Wireshark

When we install Wireshark in the deepin application store, it is generally impossible to capture packets normally; therefore, we need to change the usage permissions ourselves. The steps are as follows:
  (1) Add a wireshark user group

sudo groupadd wireshark

   (2)将dumpcap更改为wireshark用户组

sudo chgrp wireshark /usr/bin/dumpcap

   (3)让wireshark用户组有root权限使用dumpcap。

sudo chmod 4755 /usr/bin/dumpcap

   (4)将需要使用的用户名加入wireshark用户组,我的用户名是matrix,用户名就是安装系统的时候,设置的用户名;

sudo gpasswd -a matrix wireshark

  以上就是所有的步骤,大家可以尝试一下,我试过了,确实可以解决。

Guess you like

Origin blog.csdn.net/Light20000309/article/details/104945922