I've answered yes to sudo dpkg-reconfigure wireshark-common
, and done the following:
sudo usermod -a -G wireshark my_username
groups my_username
confirms that I'm in the group.
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 770 /usr/bin/dumpcap
Runing ls -l for that file gives
-rwxrwx--- 1 root wireshark 113112 abr 19 2020 /usr/bin/dumpcap
and finally
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
However, only when I change the dumpcap file permissions to be executed by any user, do I manage to start capturing packets.
Why is this?
I never had a problem with capturing data using Wireshark or tshark when I followed the instructions.
sudo usermod -a -G wireshark my_username