LinuxCommandLibrary

pkaction

TLDR

List all actions

$ pkaction
copy
Show action details
$ pkaction --verbose --action-id [org.freedesktop.login1.reboot]
copy
List actions matching pattern
$ pkaction | grep [pattern]
copy
Show action in verbose mode
$ pkaction -v -a [action.id]
copy

SYNOPSIS

pkaction [options]

DESCRIPTION

pkaction lists and displays PolicyKit actions. PolicyKit controls fine-grained access to system operations, and pkaction shows what actions are available and their authentication requirements.

PARAMETERS

--action-id, -a id

Show specific action.
--verbose, -v
Verbose output.
--help
Show help.
--version
Show version.

EXAMPLES

$ # List all actions
pkaction

# Show reboot action details
pkaction -v -a org.freedesktop.login1.reboot

# Find package manager actions
pkaction | grep -i package

# Show details for all actions
pkaction --verbose
copy

OUTPUT

$ $ pkaction -v -a org.freedesktop.login1.reboot
org.freedesktop.login1.reboot:
  description:       Reboot the system
  message:           Authentication is required to reboot
  vendor:            The systemd Project
  implicit any:      auth_admin_keep
  implicit inactive: auth_admin_keep
  implicit active:   yes
copy

CAVEATS

Requires PolicyKit. Actions defined in /usr/share/polkit-1/actions/. Changing policies requires pkexec or root.

HISTORY

pkaction is part of PolicyKit (polkit), the authorization framework developed by Red Hat for fine-grained access control.

SEE ALSO

pkexec(1), pkcheck(1), polkit(8)

Copied to clipboard