• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tcpdump wiggin out?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tcpdump wiggin out?


  • Subject: Re: tcpdump wiggin out?
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 18 Aug 2001 21:14:57 +0100

On Saturday, August 18, 2001, at 08:29 pm, Ivan Myrvold wrote:

When I execute tcpdump, I get the message:

tcpdump: /dev/bpf0: Permission denied

This makes it necessary to use sudo tcpdump for the command.

The same happens when I use libpcap to capture packets in my cocoa application. How can I avoid this?

Normal users don't normally have direct access to BSD character devices under /dev (same on Linux and just about every other UNIX, too). There is a reason for this :-)

However, you can probably setuid(root) the utility (dangerous), or use AuthorizationExecuteWithPrivileges from the Security.framework (less dangerous).

-- Finlay


References: 
 >Re: tcpdump wiggin out? (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: Re: tcpdump wiggin out?
  • Next by Date: Re: tcpdump wiggin out?
  • Previous by thread: Re: tcpdump wiggin out?
  • Next by thread: Re: tcpdump wiggin out?
  • Index(es):
    • Date
    • Thread