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"

Running Wireshark - "Lua: Error during loading"


1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.