The capture session could not be initiated on capture device "***" (You don't have permission to capture on that device).
Hello,
I got a tshark(Wireshark) 4.0.0rc1 source code, then built and ran it, but got the error below.
user2@dai-VirtualBox:~$ tshark Capturing on 'enp0s3' tshark: The capture session could not be initiated on capture device "enp0s3" (You don't have permission to capture on that device). Please check to make sure you have sufficient permissions. On Debian and Debian derivatives such as Ubuntu, if you have installed Wireshark from a package, try running sudo dpkg-reconfigure wireshark-common selecting "<yes>" in response to the question Should non-superusers be able to capture packets? adding yourself to the "wireshark" group by running sudo usermod -a -G wireshark {your username} and then logging out and logging back in again. tshark: 0 packets captured user2@dai-VirtualBox:~$ groups user2 sudo wireshark user2@dai-VirtualBox:~$
As shown in the results of the groups command, the tshark execution user (user2) is already added to the wireshark group.
I get the same error when trying to capture with Wireshark.
How can I resolve this?
My execution environment is as follows.
OS: Ubuntu 20.04.1 LTS (VirtualBox) VirtualBox: 6.1.16 r140961 (Qt5.6.2) tshark(Wireshark): 4.0.0rc1
I got the source code from here.
https://2.na.dl.wireshark.org/src/all...
Thank you.
Did you build a deb package that you installed, or are you trying to run it from a build directory?
Did you follow the instructions at https://wiki.wireshark.org/CaptureSet... ?
>Did you build a deb package that you installed,
I followed the steps below to build and install from the tar.xz file.
1.I downloaded and extracted the tar.gz file from here( https://2.na.dl.wireshark.org/src/all... ).
2.I ran this command in terminal(cd "extracted dir").
3.I ran this command in terminal( cmake . ).
4.I ran this command in terminal( make ).
5.I ran this command in terminal( sudo make install ).
6-1.I ran this command in terminal( sudo dpkg-reconfigure wireshark-common ).
6-2.I selected "Yes" in response to the question.
7.I ran this command in terminal( sudo usermod -a -G wireshark "username" ).
8.I ran this command in terminal( tshark ).
After that I got the error in the question I posted.
>or are you trying to run it from a build directory?
I ran the tshark command in various directories.
And I ...(more)
What do the commands:
print?
>Guy Hams