setcap
Set capabilities of specified file. See also:
getcap. More information: https://manned.org/setcap.
- Set capability
cap_net_raw(to use RAW and PACKET sockets) for a given file:
setcap 'cap_net_raw'
- Set multiple capabilities on a file (
epbehind the capability means "effective permitted"):
setcap ''
- Remove all capabilities from a file:
setcap -r
- Verify that the specified capabilities are currently associated with the specified file:
setcap -v ''
- Set the file capability for use only in a user namespace with a specific root user ID owner:
setcap -n ''
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
