What is the
setcapcommand and what is
file capability, also the meaning of below "setcap output:
CAP_NET_RAW+eip CAP_NET_ADMIN+eip "/usr/bin/dumpcap"
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
In the link you provided , the use
setcap Sniffing with Wireshark as a Non-Root User because, by default, raw access to network interfaces (e.g. eth0) requires root privileges and running it with root privileges is a bad idea .
setcap - set file capabilities
man page Link
Check file system capabilities Man Page
CAP_NET_ADMIN - Allow various network-related operations (e.g., setting privileged socket options, enabling multicasting, interface configuration, modifying routing tables). CAP_NET_RAW - Permit use of RAW and PACKET sockets.
For more info Site