Am having trouble running tcpdump. I must run tcpdump with non-root user. Searched the web for my problem and figured out I should:
sudo setcap cap_net_admin=eip /usr/sbin/tcpdump
That enabled me to run tcpdump with my user but then I got:
you don't have permission to capture on that device
on any device I tried capturing.
Also went a little brute-force and did:
sudo chmod +s /usr/sbin/tcpdump
That didn't do it either.
tcpdump: eth0: You don't have permission to capture on that device (socket: Operation not permitted