OS Manuals

/usr/bin/setcap

various utilities included with libcap

From libcap-utils 2.78-r4 (os), captured 2026-11-05 by running setcap --help (exit 1). permalink

fatal error: Invalid argument
usage: setcap [--license] [-f] [-h] [-n <rootid>] [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]

 Note <filename> must be a regular (non-symlink) file.
 -r          remove capability from file
 -           read capability text from stdin
 <capsN>     cap_from_text(3) formatted file capability
 [ Note: capsh --suggest="something..." might help you pick. ]
 --license   display the license info
 -f          force setting even when the capability is invalid
 -h          this message and exit status 0
 -n <rootid> write a user namespace (!= 0) limited capability
 -q          quietly
 -v          validate supplied capability matches file
argument: --help
Options (6)
OptionDescriptionSource
-rremove capability from filehelp
--licensedisplay the license infohelp
-fforce setting even when the capability is invalidhelp
-hthis message and exit status 0help
-qquietlyhelp
-vvalidate supplied capability matches filehelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.