Need Help Configuring Wireshark
Greetings-
Trying to set up wireshark to capture traffic in my home network, but I'm getting an error message. First off, I used the following code to set up wireshark so as NOT to run as root:
Quote:
$ sudo -s
# sudo apt-get install libcap2-bin
# groupadd -g wireshark
# usermod -a -G wireshark myusername
# chmod 750 /usr/bin/dumpcap
# setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
The error message I get when I startup the application is:
Quote:
Couldn't run /usr/bin/dumpcap in child process: Permission denied
Any help to sort this out would be greatly appreciated!
Re: Need Help Configuring Wireshark
Re: Need Help Configuring Wireshark
Hey Ms. Daisy,
Actually, those are the commands I tried originally that got me the error message. This is probably worth mentioning, but when I ran those commands, I change one line:
groupadd -g wireshark
to
groupadd wireshark
because the original command was asking for a value, so I just removed the -g and I was able to add the group wireshark. I don't know if this would cause the problem I'm experiencing, but wanted to mention it nevertheless.
Re: Need Help Configuring Wireshark
And once you run the commands, setting up the group and adding yourself etc..
Log out and once logged back in it works at that point.
Re: Need Help Configuring Wireshark
Quote:
Originally Posted by
CyberpathicGhost
And once you run the commands, setting up the group and adding yourself etc..
Log out and once logged back in it works at that point.
I've tried logging out, logging back in, rebooting, but I still get the same error message.
Re: Need Help Configuring Wireshark
I used the commands from this page:
http://packetlife.net/blog/2010/mar/...non-root-user/
They are a bit different than those posted.
You can also try running Wireshark as sudo just to see it work, as a test.
terminal: sudo wireshark
Re: Need Help Configuring Wireshark
Do you know how I can undo the changes I made by running those commands, I'd hate to run additional commands and risk really fing up system files.
If I run it as sudo, I get this error message:
Quote:
Lua: Error during loading:
[string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
But once I exit out, it works. But I really need to get this errors squared away.
Re: Need Help Configuring Wireshark
I'm just a novice. I haven't had any trouble with this aspect of the setup. But I have had to reinstall Ubuntu two or three time in the short while I've been using it. I tend to not mess with the OS, these days, after the installation. So far so good. Good luck.
Re: Need Help Configuring Wireshark
No problem. Anyway, thanks for trying. I'm actually trying to run this on linux mint maya, it's a fresh install, so I could always do a quick reinstall. But I hate to get into the habit of re-installing systems whenever I run into a problem.
Re: Need Help Configuring Wireshark
In my defense, practice makes perfect. :lolflag:
But I agree with your method too. However at this point for me reinstalling can be way, way faster. Not knowing the correct questions, my speed of learning and the way in which I compound my problems all conspire against me.
Da Buddha, recommended from my past life.