Search code examples
ubuntuubuntu-16.04tcpdump

TCPDUMP install problems


I'm getting an error when running the following command:

sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/tcpdump*

Which provides the following error:

Failed to set capabilities on file `/usr/bin/tcpdump' (Invalid argument) The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file

As of yet I haven't been able to find any solutions - and would be extremely grateful to anyone who could offer or help me find one.


Solution

  • The base Debian package for tcpdump, as does the Ubuntu one, shows the executable actually resides in /usr/sbin/tcpdump, and not /usr/bin/tcpdump.