1SETCAP(8) System Manager's Manual SETCAP(8)
2
3
4
6 setcap - set file capabilities
7
9 setcap [-q] [-v] (capabilities|-|-r) filename [ ... capabilitiesN fileN
10 ]
11
13 In the absence of the -v (verify) option setcap sets the capabilities
14 of each specified filename to the capabilities specified. The -v
15 option is used to verify that the specified capabilities are currently
16 associated with the file.
17
18 The capabilities are specified in the form described in
19 cap_from_text(3).
20
21 The special capability string, '-', can be used to indicate that capa‐
22 bilities are read from the standard input. In such cases, the capabil‐
23 ity set is terminated with a blank line.
24
25 The special capability string, '-r', is used to remove a capability set
26 from a file.
27
28 The -q flag is used to make the program less verbose in its output.
29
31 The setcap program will exit with a 0 exit code if successful. On fail‐
32 ure, the exit code is 1.
33
35 cap_from_text(3), cap_set_file(3), getcap(8)
36
37
38
39 24th October 2008 SETCAP(8)