getcap
examine file capabilities
TLDR
Get capabilities for the given files
$ getcap [path/to/file1 path/to/file2 ...]
Get capabilities for all the files recursively under the given directories
$ getcap -r [path/to/directory1 path/to/directory2 ...]
Displays all searched entries even if no capabilities are set
$ getcap -v [path/to/file1 path/to/file2 ...]
SYNOPSIS
getcap [-v] [-n] [-r] [-h] filename [ ... ]
DESCRIPTION
getcap displays the name and capabilities of each specified file.
OPTIONS
- -h
-
prints quick usage.
- -n
-
prints any non-zero user namespace root user ID value found to be associated with a file's capabilities.
- -r
-
enables recursive search.
- -v
-
display all searched entries, even if the have no file-capabilities.
- filename
-
One file per line.
REPORTING BUGS
Please report bugs via:
- https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1090757