“tcpdump -w 1.pcap” works, but “tcpdump -C 100 -w 1.pcap” - permission denied

前端 未结 3 1879
说谎
说谎 2021-01-02 06:50

I need to limit file size when I run \"tcpdump -w 1.pcap\". I try to do this with the key \"-C\", but when I add it I get error \"permission denied\". So:

&g         


        
3条回答
  •  灰色年华
    2021-01-02 07:27

    I experienced similar problems when I tried to read from file, like

    tcpdump -r example.cap 'icmp[icmptype] = icmp-echo'
    

    For me AppArmor caused the problem I had to switch from 'enforcement' mode to 'complain' mode on 'tcpdump'. Run the following command as root:

    aa-complain /usr/sbin/tcpdump
    

提交回复
热议问题