tcpdump mailing list archives
Re: Error socket: Operation not permitted
From: Guy Harris <guy () netapp com>
Date: Wed, 26 Feb 2003 14:09:33 -0800
On Wed, Feb 26, 2003 at 01:51:15PM -0800, Steve Bonds wrote:
Yes, you have to be root.
Or you have to have the right capability bits (CAP_NET_RAW and, to get a list of the interfaces, CAP_NET_ADMIN) set for the process running the libpcap-based program. Unfortunately, I know of no Linux distribution whose userland lets you specify, for example, that particular users should have particular capability bits set in their login processes, so that you can give particular privileges to particular users, so, in practice, a program to do packet capture needs root privileges on Linux. - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- Error socket: Operation not permitted Jeff Wong (Feb 26)
- Re: Error socket: Operation not permitted Jeff Wong (Feb 26)
- How can I create a filter to capture all ip packets? Jeff Wong (Feb 27)
- Re: How can I create a filter to capture all ip packets? Guy Harris (Feb 27)
- How can I create a filter to capture all ip packets? Jeff Wong (Feb 27)
- <Possible follow-ups>
- Re: Error socket: Operation not permitted Steve Bonds (Feb 26)
- Re: Error socket: Operation not permitted Guy Harris (Feb 26)
- Re: Error socket: Operation not permitted Jeff Wong (Feb 26)