GNU/Linux |
Debian 6.0.6(Squeeze) |
|
![]() |
pkcheck(1) |
![]() |
pkcheck − Check whether a process is authorized
pkcheck [−−version] [−−help] | |
pkcheck −−action−id action {−−process { pid | pid,pid−start−time } | −−system−bus−name busname} [−−allow−user−interaction] [−−detail key value...] |
pkcheck is used to check whether a process, specified by either −−process 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.
This command is a simple wrapper around the PolicyKit D−Bus interface; see the D−Bus interface documentation for details.
If the specified process is authorized, pkcheck exits with a return value of 0. If the authorization result contains any details, these are printed on standard output as key/value pairs using environment style reporting, e.g. first the key followed by a an equal sign, then the value followed by a newline.
KEY1=VALUE1
KEY2=VALUE2
KEY3=VALUE3
...
Octects that are not in [a−zA−Z0−9_] are escaped using octal codes prefixed with \. For example, the UTF−8 string føl,
![]() |
pkcheck(1) | ![]() |