tcpdump mailing list archives

Re: tcpdump: file.pcap0: Permission denied


From: "Mark W. Jeanmougin" <mark.jeanmougin () cchmc org>
Date: Fri, 03 Feb 2012 15:15:14 -0500

Hey Jerome,

On 02/03/2012 01:53 PM, Jerome Yanga wrote:
When I attempt to run the following command...

tcpdump -i eth0 -s 65535 -w /data/capture_rotate_`date +%Y_%m_%d`.pcap
-C 4 -W 10 -G 300 -z bzip2 -F /data/capture-seed.txt

...I get the following error.
tcpdump: /data/capture_rotate_2012_02_03.pcap0: Permission denied

What are the permissions on the /data/ directory? Does the first command work without the shell expansion date command?

The seed file is just a 4MB file that I had created using dd.
-rw-r--r-- 1 root root 4.0M Feb  3 07:29 /data/502_capture-seed.txt

It looks like the '-F' is for a tcpdump style filter. I'm not sure how you'd create that with dd...

Good luck,

MJ

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: