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

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%


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

permanent link

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

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×146
×73
×21
×6
×1

question asked: 13 Oct '15, 11:09

question was seen: 1,951 times

last updated: 13 Oct '15, 14:47

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