GithubHelp home page GithubHelp logo

Comments (7)

gcla avatar gcla commented on July 21, 2024

Thanks for the report, I'll try to improve that.

from termshark.

pocc avatar pocc commented on July 21, 2024

termshark is relaying the permissions issue that dumpcap ran into. termshark could ask for sudo privileges, but tshark/dumpcap fail on permission error, so termshark should mimic behavior.

@sagis-tikal This is an issue if capturing with command dumpcap does not produce this error but capturing with termshark does. Otherwise, please close this issue.

from termshark.

mr-sour avatar mr-sour commented on July 21, 2024

I ran into this to I got "Could not find network interface vcan0" but the problem was my permissions a more descriptive error or just adding the age ol "Are you root?" to the existing error message would be an improvement. running with sudo fixed it.

from termshark.

pocc avatar pocc commented on July 21, 2024

Permission Errors

This is tshark's permission error:

tshark: Couldn't run /usr/bin/dumpcap in child process: Permission denied

Checking in an Ubuntu VM, this is what I get for termshark without sudo:

Cannot capture on interface ciscodump: fork/exec /usr/bin/dumpcap: permission denied (exit code -1)
See https://wiki.wireshark.org/CaptureSetup/CapturePrivileges for more info.

Which is plenty informative, and better than tshark's error message.

Need Info

Can users experiencing this issue please post

  • tshark -v
  • the error text that termshark gives without sudo?

from termshark.

gcla avatar gcla commented on July 21, 2024

I think I have introduced a regression in termshark v2. I'll look at making this more informative.

from termshark.

gcla avatar gcla commented on July 21, 2024

I added a more useful comment - to run a setcap command, and as @mr-sour suggested, the good old-fashioned "use root" ;-)

If you want to try it, the latest can be installed with

go get github.com/gcla/termshark/v2/cmd/termshark@master

from termshark.

gcla avatar gcla commented on July 21, 2024

I added this link too: https://termshark.io/no-root

I'll close this issue now.

from termshark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.