This is our old Q&A Site. Please post any new questions and answers at


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

accept rate: 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:

and the wiki pages


permanent link

answered 13 Oct '15, 13:45

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
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

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 ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 13 Oct '15, 11:09

question was seen: 2,171 times

last updated: 13 Oct '15, 14:47

p​o​w​e​r​e​d by O​S​Q​A