Re: tcpdump wiggin out?
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