Linux "pkcheck" Command Line Options and Examples
Check whether a process is authorized

pkcheck is used to check whether a process, specified by either --process (see below) or --system-bus-name, is authorized for action. The --detail option can be used zero or more times to pass details about action. If --allow-user-interaction is passed, pkcheck blocks while waiting for authentication.


Usage:

pkcheck [--version] [--help]




Command Line Options:

--allow-user-interaction
The invocation pkcheck --list-temp will list all temporary authorizations for the current session and pkcheck
pkcheck --allow-user-interaction ...
--revoke-temp
This command is a simple wrapper around the PolicyKit D-Bus interface; see the D-Bus interface documentationfor details.RETURN VALUEIf the specified process is authorized, pkcheck exits with a return value of 0. If the authorization resultcontains any details, these are printed on standard output as key/value pairs using environment stylereporting, e.g. first the key followed by a an equal sign, then the value followed by a newline.KEY1=VALUE1KEY2=VALUE2KEY3=VALUE3...Octects that are not in [a-zA-Z0-9_] are escaped using octal codes prefixed with \. For example, the UTF-8string føl,你好 will be printed as f\303\270l\54\344\275\240\345\245\275.If the specificied process is not authorized, pkcheck exits with a return value of 1 and a diagnostic messageis printed on standard error. Details are printed on standard output.If the specificied process is not authorized because no suitable authentication agent is available or if the
pkcheck --revoke-temp ...