I want to use the following command to allow usage of the libpcap package without to sudo (on a debian system):
sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/nodejs
I'm getting this error:
Failed to set capabilities on file `/usr/bin/nodejs' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
But /usr/bin/nodejs
is not a symlink:
-rwxr-xr-x 1 root root 18M Jun 3 03:20 /usr/bin/nodejs
USER@HOST:~$ which nodejs
/usr/bin/nodejs
my drive is mounted like this:
USER@HOST:~$ cat /etc/fstab
#
# /etc/fstab
#
# <device> <mountpoint> <filesystemtype> <options> <dump> <fsckorder>
/dev/mmcblk0p1 / ext3 defaults 0 1