Wireshark-users: [Wireshark-users] tcpdump -z bzip2/gzip permission denied

From: Zaki Akhmad <zakiakhmad@xxxxxxxxx>
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