PKTTYAGENT(1)
โจ PKTTYAGENT(1) โจ
okay so bestie, welcome to pkttyagent(1) from the pkttyagent manual, section 1 ๐ this is the whole vibe, let's go.
๐ธ NAME ๐ธ
pkttyagent โ your textual authentication helper, aka the little terminal bestie that handles auth for you ๐ซถ
๐ SYNOPSIS ๐
pkttyagent [--version] [--help]
pkttyagent [--process { pid | pid,pid-start-time } |
--system-bus-name busname] [--notify-fd fd] [--fallback]
๐ DESCRIPTION ๐
pkttyagent is what you run when you want to start a textual authentication agent for a subject. And who's the subject, you ask? Whoever you point at with either --process or --system-bus-name. If you don't pass either of those, no stress โ it just uses the parent process. easy ๐ซ
Now, if you wanna get notified when the authentication agent has been registered, you've got two options (not like, bad options, good options):
- listen for the
ChangedD-Bus signal, or - use
--notify-fdand hand over the number of a file descriptor that was passed to the program.
That file descriptor? It gets closed once the authentication agent has been successfully registered. so that's your lil "we're in, bestie" ping โจ
And if you use --fallback, the textual authentication agent will not replace an existing authentication agent. it knows how to share the aux, iconic behavior tbh ๐
๐ฅ RETURN VALUE ๐ฅ
Let's talk outcomes, because we love a clear signal:
- If the authentication agent could not be registered,
pkttyagentexits with an exit code of 127. Diagnostic messages get printed on standard error. ๐ - If one or more of the options you passed are malformed,
pkttyagentexits with an exit code of 126. And if stdin is a tty, then this manual page is also shown. (yes bestie, the manpage itself is the error message, we love a self-aware king ๐ญ) - If the authentication agent was successfully registered,
pkttyagentwill keep running, interacting with the user as needed. When its services are no longer needed, the process can be killed. slay, then bye ๐
โญ NOTES โญ
okay this part is important, listen up:
Since process identifiers can be recycled, the caller should always usepid,pid-start-timewhen using the--processoption.
The value of pid-start-time can be determined by consulting e.g. the proc(5) file system, depending on the operating system. And if you only pass pid to the --process option, then pkttyagent will look up the start time itself โ but note that this may be racy. ngl, don't do that to yourself ๐
๐ OPTIONS ๐
--versionโ the version flag, sitting right there in the first synopsis line ๐--helpโ the help flag, right next to it, equally iconic ๐--process { pid | pid,pid-start-time }โ pick your subject by process. you can give just apid, or go the safe route withpid,pid-start-time(see the NOTES above, bestie, it's giving responsible ๐ฅ)--system-bus-name busnameโ pick your subject by system bus name instead โจ--notify-fd fdโ pass the number of a file descriptor that was passed to the program; it gets closed once the authentication agent is successfully registered ๐ฆ--fallbackโ makes it so the textual authentication agent will not replace an existing authentication agent ๐
๐ AUTHOR ๐
Written by David Zeuthen <davidz@redhat.com> with a lot of help from many others. group project, and they ate ๐ซถ
๐ BUGS ๐
Please send bug reports to either the distribution or the polkit-devel mailing list, see:
https://github.com/polkit-org/polkit#bugs-and-development
๐ง SEE ALSO ๐ง
polkit(8), polkitd(8), pkaction(1), pkcheck(1), pkexec(1)
that's the whole page bestie, you're so welcome ๐ this came to you from polkit, dated May 2009, living under the name PKTTYAGENT(1). go forth and authenticate, main character ๐
๐ฆ where this page comes from
- alpine 3.24: polkit-doc 127-r2 ยท GPL-2.0-or-later
- arch rolling: polkit 128-1 ยท LGPL-2.0-or-later
- fedora 44: polkit 127-2.fc44.2 ยท LGPL-2.0-or-later
- nixos 26.05: polkit 127
- nixpkgs unstable: polkit 127
- ubuntu resolute: polkitd 127-2ubuntu1
- ubuntu resolute: polkitd 127-2ubuntu1.1
- ubuntu stonking: polkitd 127-3ubuntu1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms