Hello; How to set environment variables for wireshark in Kubuntu ? l have trouble when capturing an interface : there is no interface on wich a capture can be done Thank you for your help This question is marked "community wiki". asked 13 Oct '15, 11:09 agwmar |
One Answer:
Your problem is not related to 'environment variables'. It is (most certainly) related to access privileges. Your need to run the command setcap. See my answers to similar questions:
and the wiki pages
Regards answered 13 Oct '15, 13:45 Kurt Knochner ♦ |
when l set in my shell terminal this command : setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap it returns unable to set CAP_SETFCAP effective capability: Operation not permitted
please run:
sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
this command work but this one : chgrp wireshark /usr/bin/dumpcap
returns chgrp: invalid group: ‘wireshark’
please read the wiki links I posted and the docs of your OS!
sudo addgroup wireshark
sudo usermod -a -G wireshark YOUR_USER_NAME
sudo chown root:wireshark /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap