Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Need Help Configuring Wireshark

  1. #1
    Join Date
    Aug 2011
    Location
    Everywhere and Nowhere
    Beans
    136
    Distro
    Ubuntu 12.04 Precise Pangolin

    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:

    $ 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:

    Couldn't run /usr/bin/dumpcap in child process: Permission denied
    Any help to sort this out would be greatly appreciated!
    Last edited by w201; August 27th, 2012 at 02:11 PM.
    Cannabis doesn't take away your motivation to do things, it takes away your motivation to do things that suck. -Joe Rogan

  2. #2
    Join Date
    Sep 2011
    Beans
    1,531

    Re: Need Help Configuring Wireshark


  3. #3
    Join Date
    Aug 2011
    Location
    Everywhere and Nowhere
    Beans
    136
    Distro
    Ubuntu 12.04 Precise Pangolin

    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.
    Cannabis doesn't take away your motivation to do things, it takes away your motivation to do things that suck. -Joe Rogan

  4. #4
    Join Date
    Aug 2012
    Beans
    7

    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.

  5. #5
    Join Date
    Aug 2011
    Location
    Everywhere and Nowhere
    Beans
    136
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need Help Configuring Wireshark

    Quote Originally Posted by CyberpathicGhost View Post
    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.
    Cannabis doesn't take away your motivation to do things, it takes away your motivation to do things that suck. -Joe Rogan

  6. #6
    Join Date
    Aug 2012
    Beans
    7

    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

  7. #7
    Join Date
    Aug 2011
    Location
    Everywhere and Nowhere
    Beans
    136
    Distro
    Ubuntu 12.04 Precise Pangolin

    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:
    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.
    Cannabis doesn't take away your motivation to do things, it takes away your motivation to do things that suck. -Joe Rogan

  8. #8
    Join Date
    Aug 2012
    Beans
    7

    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.

  9. #9
    Join Date
    Aug 2011
    Location
    Everywhere and Nowhere
    Beans
    136
    Distro
    Ubuntu 12.04 Precise Pangolin

    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.
    Cannabis doesn't take away your motivation to do things, it takes away your motivation to do things that suck. -Joe Rogan

  10. #10
    Join Date
    Aug 2012
    Beans
    7

    Re: Need Help Configuring Wireshark

    In my defense, practice makes perfect.

    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.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •