Sponsor:

Your company here, and a link to your site. Click to find out more.

getcap - Man Page

examine file capabilities

Examples (TL;DR)

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

See Also

capsh(1), cap_get_file(3), cap_to_text(3), capabilities(7), user_namespaces(7), captree(8), getpcaps(8) and setcap(8).

Referenced By

capabilities(7), capsh(1), getpcaps(8), libcap(3), setcap(8).

2021-08-29