What is 'setcap' command and 'file capability'?
25,501
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
Related videos on Youtube
![Mohammad Reza Rezwani](https://i.stack.imgur.com/SeeDV.jpg?s=256&g=1)
Comments
-
Mohammad Reza Rezwani almost 2 years
What is the
setcap
command and what isfile capability
, also the meaning of below "setcap output:CAP_NET_RAW+eip CAP_NET_ADMIN+eip "/usr/bin/dumpcap"