This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

how to set environment variables in kubuntu ?

0

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's gravatar image

agwmar
6112
accept rate: 0%


One Answer:

0

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:

https://ask.wireshark.org/questions/29555/no-interface-can-be-used
https://ask.wireshark.org/questions/19675/error-when-running-wireshark-on-ubuntu-as-non-root-user

and the wiki pages

http://wiki.wireshark.org/CaptureSetup/CapturePrivileges
http://wiki.wireshark.org/Development/PrivilegeSeparation

Regards
Kurt

answered 13 Oct '15, 13:45

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

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

(13 Oct '15, 13:54) agwmar

please run:

sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

(13 Oct '15, 13:55) Kurt Knochner ♦

this command work but this one : chgrp wireshark /usr/bin/dumpcap

returns chgrp: invalid group: ‘wireshark’

(13 Oct '15, 14:06) agwmar
(13 Oct '15, 14:45) Kurt Knochner ♦

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

(13 Oct '15, 14:47) Kurt Knochner ♦