Wireshark mailing list archives

tcpdump -z bzip2/gzip permission denied


From: Zaki Akhmad <zakiakhmad () gmail com>
Date: Fri, 24 Feb 2012 14:23:19 +0700

Hello,

I am trying to run tcpdump with -z option but it failed. It was said
"permission denied"

$vim tcpdump.sh
#!/bin/bash
directory="/home/za/tools/tcpdump/rr"
tcpdump -i eth0 -W 10 -G 60 -z bzip2  -w $directory/packet_%Y%m%d.%H%M.pcap

I run the tcpdump with root privilege
# ./tcpdump.sh
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size
65535 bytes
compress_savefile:execlp(bzip2,
/home/za/tools/tcpdump/rr/packet_20120224.1416.pcap): Permission
denied

I've made the directory permision 777, but still failed
$ ls -l /home/za/tools/tcpdump/rr
drwxrwxrwx 2 za   za     4096 2012-02-24 14:20 rr

compress_savefile:execlp(bzip2,
/home/za/tools/tcpdump/rr/packet_20120224.1420.pcap): Permission
denied
compress_savefile:execlp(bzip2,
/home/za/tools/tcpdump/rr/packet_20120224.1420.pcap): Permission
denied
compress_savefile:execlp(bzip2,
/home/za/tools/tcpdump/rr/packet_20120224.1420.pcap): Permission
denied

What's wrong?

Thanks!
-- 
Zaki Akhmad
___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://wireshark.org/mailman/options/wireshark-users
             mailto:wireshark-users-request () wireshark org?subject=unsubscribe


Current thread: