Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread Jerome Yanga
FYI, the command below just give me a Permission Denied error and does not create any files. tcpdump -i eth0 -s 65535 -w /data/capture_rotate_`date +%Y_%m_%d`.pcap2 -C 4 jerome On Mon, Feb 6, 2012 at 8:09 AM, Jerome Yanga wrote: > Mark, > > I tried something and it seems to work now. > > I crea

Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread Jerome Yanga
Mark, I tried something and it seems to work now. I created the file /data/capture_rotate_`date +%Y_%m_%d`.pcap2 first and changed its permission to how you suggested prior to running tcpdump and it started working properly. I picked 65535 so I can capture the everything. Though it should be th

Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread Mark W. Jeanmougin
Hey Jerome, I should've been more specific. I wanted to see permissions and ownership on the files created by tcpdump. How about: tcpdump -i eth0 -s 65535 -w /data/capture_rotate_`date +%Y_%m_%d`.pcap1 tcpdump -i eth0 -s 65535 -w /data/capture_rotate_`date +%Y_%m_%d`.pcap2\ -C 4 ls -al /data

Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread Jerome Yanga
Here is the permission of /data/ # ls -al /data/ total 4104 drwxrwxrwx   2 root root    4096 Feb  6 06:54 . dr-xr-xr-x. 23 root root    4096 Feb  3 06:49 .. -rw-rw-rw-   1 root root 4194304 Feb  3 07:29 capture-seed.txt I saw some articles about disabling AppArmor and tried running the command but

Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread Mark W. Jeanmougin
On 02/06/2012 09:54 AM, Jerome Yanga wrote: No dice. :( The chmod did not change anything. I started with and this worked. tcpdump -i eth0 -s 65535 -w /data/capture_rotate_`date +%Y_%m_%d`.pcap1 As soon as I added the "-C", I got the same error. tcpdump -i eth0 -s 65535 -w /data/capture_rot

Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread rixed
> I am running on RHEL 6.1 with Selinux disabled. And AppArmor disabled as well right? - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread Jerome Yanga
No dice. :( The chmod did not change anything. I started with and this worked. tcpdump -i eth0 -s 65535 -w /data/capture_rotate_`date +%Y_%m_%d`.pcap1 As soon as I added the "-C", I got the same error. tcpdump -i eth0 -s 65535 -w /data/capture_rotate_`date +%Y_%m_%d`.pcap1 -C 4 jerome On Mo

Re: [tcpdump-workers] tcpdump: file.pcap0: Permission denied

2012-02-06 Thread Mark W. Jeanmougin
On 02/03/2012 07:04 PM, Jerome Yanga wrote: The permissions on the /data directory is ... # ls -alh /data/ total 4.1M drwxr-xr-x 2 root root 4.0K Feb 3 15:21 . dr-xr-xr-x. 23 root root 4.0K Feb 3 06:49 .. -rw-r--r-- 1 root root 4.0M Feb 3 07:29 502_capture-seed.txt Try running 'chmod a+w