I'm trying to capture on my laptop (Linux) packets, that goes through the wireless card. Wireshark shoes only the capture interfaces: bluetooth0, randpkt and udpdump. wlan0 isn't shown. I used this and it worked. But is there a way that mon0 (or wlan0) will appear in Wireshark and I can use it normally and not having to do the "sudo tcpdump..." and then "wireshark -nr..." any time I want to capture? asked 01 Sep '17, 09:44 sharp_pilot |
One Answer:
If you built using the If you build using CMake, you need to run CMake with answered 02 Sep '17, 23:39 Guy Harris ♦♦ When I run
So it just installed it as root? And it run it has root now when I call How should I restrict that? (03 Sep '17, 03:46) sharp_pilot 1
Yes.
No. Running a program whose executable image file is owned by root does not cause the program to run as root. Try running Wireshark isn't what needs elevated privileges to capture on Linux; dumpcap is. And (03 Sep '17, 11:23) Guy Harris ♦♦ |
1) What happens if you run tcpdump on mon0/wlan0 without sudo?
2) What Linux distribution is this?
1) tcpdump: mon0: You don't have permission to capture on that device (socket: Operation not permitted)
2) Mint
I tried
sudo wireshark
and it showing me all the interfaces that way, but is it safe to use it with root privileges?I tried this:
https://askubuntu.com/questions/74059/how-do-i-run-wireshark-with-root-privileges
but it isn't helping the tcpdump nor the wireshark to show all interfaces.
(I installed wireshark by building the source and not via
apt-get
. So issudo dpkg-reconfigure wireshark-common
the way to activate that or should I do something else?)I did this: https://wiki.wireshark.org/CaptureSetup/CapturePrivileges
And when I run
/usr/bin/dumpcap -D
it shows me all interfaces. great.But when I do
dumpcap -D
it shows me only1. bluetooth0
.And when I call
wireshark
it again doesn't show me all interfaces.Any Idea how to make wireshark show all interfaces now?