1PKTTYAGENT(1)                     pkttyagent                     PKTTYAGENT(1)
2
3
4

NAME

6       pkttyagent - Textual authentication helper
7

SYNOPSIS

9       pkttyagent [--version] [--help]
10
11       pkttyagent [--process { pid | pid,pid-start-time } |
12                  --system-bus-name busname] [--notify-fd fd] [--fallback]
13

DESCRIPTION

15       pkttyagent is used to start a textual authentication agent for the
16       subject specified by either --process or --system-bus-name. If neither
17       of these options are given, the parent process is used.
18
19       To get notified when the authentication agent has been registered
20       either listen to the Changed D-Bus signal or use --notify-fd to pass
21       the number of a file descriptor that has been passed to the program.
22       This file descriptor will then be closed when the authentication agent
23       has been successfully registered.
24
25       If --fallback is used, the textual authentication agent will not
26       replace an existing authentication agent.
27

RETURN VALUE

29       If the authentication agent could not be registered, pkttyagent exits
30       with an exit code of 127. Diagnostic messages are printed on standard
31       error.
32
33       If one or more of the options passed are malformed, pkttyagent exits
34       with an exit code of 126. If stdin is a tty, then this manual page is
35       also shown.
36
37       If the authentication agent was successfully registered, pkttyagent
38       will keep running, interacting with the user as needed. When its
39       services are no longer needed, the process can be killed.
40

NOTES

42       Since process identifiers can be recycled, the caller should always use
43       pid,pid-start-time when using the --process option. The value of
44       pid-start-time can be determined by consulting e.g. the proc(5) file
45       system depending on the operating system. If only pid is passed to the
46       --process option, then pkttyagent will look up the start time itself
47       but note that this may be racy.
48

AUTHOR

50       Written by David Zeuthen <davidz@redhat.com> with a lot of help from
51       many others.
52

BUGS

54       Please send bug reports to either the distribution or the polkit-devel
55       mailing list, see the link
56       https://gitlab.freedesktop.org/polkit/polkit/-/issues/ on how to
57       subscribe.
58

SEE ALSO

60       polkit(8), polkitd(8), pkaction(1), pkcheck(1), pkexec(1)
61
62
63
64polkit                             May 2009                      PKTTYAGENT(1)
Impressum