Moh*_*ani 5 command-line setcap
什么是setcap
命令,什么是file capability
,还有下面“setcap输出”的含义:
CAP_NET_RAW+eip CAP_NET_ADMIN+eip "/usr/bin/dumpcap"
Run Code Online (Sandbox Code Playgroud)
在您提供的链接中,setcap
以非 root 用户身份使用 Wireshark 嗅探,因为默认情况下,对网络接口(例如 eth0)的原始访问需要 root 权限,并且以 root 权限运行它是一个坏主意。
setcap - 设置文件功能
手册页链接
检查文件系统功能手册页
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.
Run Code Online (Sandbox Code Playgroud)
欲了解更多信息网站