Linux command
pkaction 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all actions
pkaction
Show action details
pkaction --verbose --action-id [org.freedesktop.login1.reboot]
List actions matching pattern
pkaction | grep [pattern]
Show action in verbose mode
pkaction -v -a [action.id]
说明
pkaction lists and displays PolicyKit (polkit) authorization actions registered on the system. Each action represents a privileged operation such as rebooting, mounting disks, or installing packages, along with the authentication requirements for different session types. In verbose mode, it shows the description, vendor, and implicit authorization levels for each action. These levels determine whether an operation is allowed, denied, or requires authentication for active, inactive, and any-user sessions. This tool is useful for system administrators to understand what privileged operations are available and how they are configured, or to verify that custom polkit rules are correctly installed.
参数
- --action-id, -a _id_
- Show specific action.
- --verbose, -v
- Verbose output.
- --help
- Show help.
- --version
- Show version.
FAQ
What is the pkaction command used for?
pkaction lists and displays PolicyKit (polkit) authorization actions registered on the system. Each action represents a privileged operation such as rebooting, mounting disks, or installing packages, along with the authentication requirements for different session types. In verbose mode, it shows the description, vendor, and implicit authorization levels for each action. These levels determine whether an operation is allowed, denied, or requires authentication for active, inactive, and any-user sessions. This tool is useful for system administrators to understand what privileged operations are available and how they are configured, or to verify that custom polkit rules are correctly installed.
How do I run a basic pkaction example?
Run `pkaction` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --action-id, -a _id_ do in pkaction?
Show specific action.