wireshark settings

Today is the first day of May. I bought a cake and ate hot pot. I wanted to work hard in the afternoon, but I fell asleep and played with my mobile phone.

well, let's get back to business.

When wireshark was used before, it was no problem to use sudo wireshark & ​​to open it, but today I don't know why it didn't work, but I can open the client directly by entering wireshark &. The preliminary judgment is because of the system. But there is a problem that wireshark & ​​open, and do not have permission to capture packets.

I checked, and the great god pointed out that it is extremely insecure to run wireshark under root privileges. 1.5 million lines of code require safe operation, so root operation is not recommended.

So now record to add non-administrator packet capture permissions for wireshark.

sudo  groupadd wireshark。

usermod -a -G wireshark username 

 Specific operation link: https://blog.csdn.net/imred/article/details/50252211

It should be noted that all operations are run with sudo, and finally restart to refresh the user table.

Finally run wireshark &

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325164172&siteId=291194637