"The capture session could not be initiated on interface 'p2p0' (You don't have permission to capture on that device)." That's what it says every time I try to start Wireshark. How do I fix this problem? asked 25 Jun '17, 21:03 Ramiz edited 25 Jun '17, 23:21 cmaynard ♦♦ |
3 Answers:
Have a look at this question's answers, and come back with more details about your system and steps you've already done if they don't help. answered 25 Jun '17, 22:05 sindy edited 25 Jun '17, 22:05 |
That sounds like a macOS interface. If so, when you installed Wireshark, did you install all the components? If not, try re-installing and doing so; one of the components should make it possible for non-root users to capture traffic. answered 26 Jun '17, 00:02 Guy Harris ♦♦ showing 5 of 13 show 8 more comments |
answered 20 Oct '17, 11:09 Amotleyview |
I've tried every possible way, uninstalling Wireshark, restarting, changing connections ect.. yet no results
What does
ls -l /dev/bpf*
print?That's not what he asked for. Open a Terminal, and in that window type
ls -l /dev/bpf*
and share the output with us.Which is what "Please check to make sure you have sufficient permissions" means on macOS and *BSD.
What happens if you run the command
sudo chgrp access_bpf /dev/bpf*
?I posted the same screenshot accidentally twice, but when i try sudo chgrp access_bpf /dev/bpf* it asks me for Password after it's done it says ''error has occurred try again''
At which point you should type your password.
"It" meaning sudo?
If what it said was "Sorry, try again.", it means you typed the wrong password.
Oh i see, it just says MacBook-Pro:~ newaccountholder$ Which is my Macbook account username
This is what the result was after typing password
OK, and now again use
ls -l /dev/bpf*
and show us the result. Maybe better to copy-paste the text rather than a screenshot. Also, maybe better to "comment" than to "answer".Obviously, you don't want the extensive help folks are offering for free along with the world's foremost packet analyzer, also for free.
Hopefully you'll edit your "answer" to be more appropriate (and at the same time convert it to a comment to the answer by @Guy Harris as that's what it is)