You are not logged in.
Hi,
I want to capture a traffic as a non-root user using a wireshark
I'm a member both of wireshark and network groups.
In spite of that I get the following error message:
The capture session could not be initiated on interface 'enp0s25' (You don't have permission to capture on that device).
Please check to make sure you have sufficient permissions, and that you have the proper interface or pipe specified.
The interface enp0s25 exists in my system.
What else should I do.
thanks for help
Last edited by jaro (2014-11-10 16:31:45)
Offline
open terminal as regular user and type
$ groups
check if it prints out those 2 groups. Then if it doesn't, try this:
$ sudo su
# usermod -aG additional_groups username
and then reboot pc.
If still doesn't - Am out of ideas. Try to run it as root. If you don't want to always type "sudo wireshark" just follow these steps:
Step 0. Be happy
Step 1. Edit /etc/sudoers file as root
Step 2. Put this line into that file:
<your_username> ALL = NOPASSWD: /usr/bin/wireshark
and save
Step 3. Change your launcher, menu or whatever from "wireshark" to "sudo wireshark" (or gksudo/kdesu instead of sudo, if needed).
Step 4. Have a break. Thats it.
I also checked arch wiki about permissions - have no idea what could be wrong. Try my steps, it might help you.
Allergic to admins&moderators. They scare me.
Offline
What happens if you run /usr/bin/dumpcap manually in the cli?
Last edited by Spider.007 (2014-11-09 12:01:59)
Offline
http://wiki.wireshark.org/CaptureSetup/ … on_methods works for me.
Offline
Thanks all of you for help.
The final solution was:
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/sbin/dumpcap
Offline