Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2006
sudo for tcpdump writes capture files with rw for root only
Using tcpdump with sudo (-- I'm not the root user of the system) to capture network packets, I got a problem with file access mode. When it captures packets and writes them into a pcap file, it write the file as root and only accessible by root (-rw-------). So I as a non-superuser can't read it afterward, which is no use for me. Did anyone have the same problem and solve it? The problem is on CentOS 3 (kernel 2.4.21) with sudo version 1.6.7p5, tcpdump version 3.7.2, and libpcap version 0.7.2.
Thanks in advance.