Debian Codegraph @

utils/filecap.8

raw
1 .TH FILECAP: "8" "Aug 2018" "Red Hat" "System Administration Utilities"
2 .SH NAME
3 filecap \- a program to see capabilities
4 .SH SYNOPSIS
5 .B filecap [ \-a | \-d | /dir | /dir/file [cap1 cap2 ...] ]
6 .SH DESCRIPTION
7 \fBfilecap\fP is a program that prints out a report of programs with file based capabilities. If a file is not in the report or there is no report at all, no capabilities were found. For expedience, the default is to check only the directories in the PATH environmental variable. If the \-a command line option is given, then all directories will be checked. If a directory is passed, it will recursively check that directory. If a path to a file is given, it will only check that file. If a file is given followed by capabilities, then the capabilities are written to the file.
8
9 .SH OPTIONS
10 .TP
11 .B \-a
12 This tells the program to show all capabilities starting from the / directory. Normally the PATH environmental variable is used to show you capabilities on files you are likely to execute.
13 .TP
14 .B \-d
15 This dumps all capabilities for reference.
16
17 .SH "EXAMPLES"
18 .nf
19 To check file capabilities in $PATH:
20 .B filecap
21
22 To check file capabilities of whole system:
23 .B filecap -a
24
25 To check file capabilities recursively in a directory:
26 .B filecap /usr
27
28 To check file capabilities of a specific program:
29 .B filecap /bin/passwd
30
31 To list all possible capabilities:
32 .B filecap -d
33
34 To set a file capability on a specific program:
35 .B filecap /bin/ping net_raw net_admin
36
37 To remove file capabilities on a specific program:
38 .B filecap /bin/ping none
39 .fi
40 .SH "SEE ALSO"
41 .BR pscap (8),
42 .BR netcap (8),
43 .BR capabilities (7).
44
45 .SH AUTHOR
46 Steve Grubb