Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Setcap in ubuntu 20.04

From: Dario Lombardo <lomato@xxxxxxxxx>
Date: Wed, 6 Jan 2021 21:32:30 +0100
Another user on SO suggested a fix


However I'm pretty sure I've run wireshark from the build dir before with setcap.

On Wed, Jan 6, 2021 at 9:20 PM Dario Lombardo <lomato@xxxxxxxxx> wrote:
Hi
I got a new laptop and I took the chance to upgrade my OS. Now I have Ubuntu 20.04. Today I had an unexpected behavior. After compilation, I issued the setcap command, but then I got:

$ sudo setcap cap_net_raw,cap_net_admin=eip run/dumpcap
$ ./run/dumpcap -D
./run/dumpcap: error while loading shared libraries: libwsutil.so.0: cannot open shared object file: No such file or directory

Removing the capabilities gave my dumpcap back.

$ sudo setcap -r run/dumpcap
$ ./run/dumpcap -D
1. wlp59s0
2. nlmon0
3. lo (Loopback)
[...]

I'm still trying to figure out if I made other configurations before, but I can't recall anything useful.
Any ideas?
Thanks.
Dario.
--
Naima is on the broom.


--
Naima is online.