getpcaps command
getpcaps shows the available process capabilities
Typical usage: diagnosing permission issues, hardening of system services, troubleshootingIntroduction into getpcaps
The getpcaps is a small utility to show process capabilities. This may help better understanding the available Linux capabilities that are available to a running process. While the tool has some parameters, for its basic purpose it just requires a PID .
Installation
When getpcaps is not installed by default, it can be added to the system using the relevant software package.
Package information for getpcaps
Operating system | Package name | Installation |
---|---|---|
AlmaLinux | libcap |
|
Arch Linux | libcap |
|
Debian | libcap2-bin |
|
Fedora | libcap |
|
Red Hat Enterprise Linux | libcap |
|
Rocky Linux | libcap |
|
openSUSE | libcap-progs |
|
Ubuntu | libcap2-bin |
|
Your Linux distribution using a different package? Share your feedback.
Usage
Frequently Asked Questions
What is the getpcaps command and its purpose?
The getpcaps command is a command-line tool to show any process capabilities.
Which package provides the getpcaps command?
The command getpcaps is provided by the libcap, libcap-progs, or libcap2-bin package.
Relevant articles using the getpcaps command
The following articles include an example on how to use getpcaps and might be worth further exploring.
Related and similar commands
Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to getpcaps:
Command | Category | Summary |
---|---|---|
capsh | capabilities | Linux capabilities testing and debugging tool |
captest | capabilities | Capabilities and privilege escalation testing tool |
filecap | capabilities | Display of Linux capabilities set on binaries in paths |
firejail | sandboxing | Sandboxing tool for Linux |
getcap | capabilities | Show file capabilities |
netcap | capabilities | Display available capabilities for running processes using network sockets |
pscap | capabilities | Display available capabilities for running processes |
setcap | capabilities | Add or remove Linux capabilities to a file |