LinuxCommandLibrary

pkcheck

TLDR

Check authorization

$ pkcheck --action-id [org.freedesktop.action] --process [pid]
copy
Check with user
$ pkcheck --action-id [action] --user [username]
copy
Allow user interaction
$ pkcheck --action-id [action] --process [pid] --allow-user-interaction
copy

SYNOPSIS

pkcheck [options]

DESCRIPTION

pkcheck checks PolicyKit authorization. Verifies action permissions.
The tool queries polkit daemon. Used for privilege checks.
pkcheck verifies authorization.

PARAMETERS

--action-id ACTION

PolicyKit action ID.
--process PID
Process ID to check.
--user USER
User to check.
--allow-user-interaction
Enable authentication dialog.
--help
Display help.

CAVEATS

Part of PolicyKit. Requires polkitd running.

HISTORY

pkcheck is part of PolicyKit for checking authorization policies.

SEE ALSO

pkaction(1), pkexec(1), polkit(8)

Copied to clipboard