PASSWORD-PROMPT(8mandos)
π PASSWORD-PROMPT(8mandos) π
okay so bestie, we're in the Mandos Manual and this lil cutie is literally called password-prompt. she's tiny, she's simple, she's giving "does one thing and does it well" energy. let's go π¦
β¨ NAME β¨
password-prompt β prompt for a password and output it. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
password-prompt [--prefix PREFIX | -p PREFIX]
[--prompt PROMPT] [--debug]
password-prompt {--help | -?}
password-prompt --usage
password-prompt {--version | -V}
π DESCRIPTION π
so like, all password-prompt does is prompt you for a password and then output whatever password you gave it to standard output. genuinely nothing else. main character with a single line of dialogue.
ngl, on its own this program is not very useful. fr fr. she's really meant to run as a plugin in the Mandos client-side system, where she serves as a fallback and alternative to grabbing passwords from a Mandos server. she's the understudy, and she's ready. π
also this program is little more than a getpass(3) wrapper β though actually using that function is not guaranteed or implied. so don't come for her about implementation details, she's keeping it mysterious. π
and here's a cute lil quirk: this program tries to detect whether a Plymouth daemon (plymouthd(8)) is running, by looking for a /run/plymouth/pid file or a process named βplymouthdβ. if it spots one, this process will immediately exit without doing anything. no prompt, no password, no drama, she's gone. π
β OPTIONS β
quick note before we dive in: this program is commonly not invoked from the command line, bestie. she's normally started by the Mandos plugin runner β see plugin-runner(8mandos). so any command line options she accepts are normally handed to her by the plugin runner, not typed by you. iykyk. π
--prefix=PREFIX,-p PREFIXβ the prefix string shown before the password prompt. a lil intro for the main event. π--prompt=PROMPTβ the password prompt itself. heads up: using this option makes this program ignore theCRYPTTAB_SOURCEandCRYPTTAB_NAMEenvironment variables. she said "i'll write my own prompt, thanks." π--debugβ enable debug mode. this turns on a lot of output to standard error about what the program is doing. and don't worry, she'll still perform all her other functions normally. multitasking queen. π₯--help,-?β gives a help message about options and their meanings. π«Ά--usageβ gives a short usage message. short and sweet, just like her. β¨--version,-Vβ prints the program version. π¦
π EXIT STATUS π
if exit status is 0, the output from the program is the password as it was read. periodt. π
otherwise, if exit status is anything other than 0, the program has encountered an error β and any output so far could be corrupt and/or truncated, and should therefore be ignored. like, fully ignored. do not pass go, do not collect your password. π
π§ ENVIRONMENT π§
CRYPTTAB_SOURCE,CRYPTTAB_NAMEβ if these are set, and if the--promptoption is not used, these environment variables will be assumed to contain the source device name and the target device mapper name, respectively, and will be shown as part of the prompt. β¨
these variables will normally be inherited from plugin-runner(8mandos), which might have in turn inherited them from its calling process. it's giving family tree. πΈ
this behavior is meant to exactly mirror the behavior of askpass, the default password prompter from initramfs-tools. accuracy is her love language. π
π BUGS π
please report bugs to the Mandos development mailing list: <mandos-dev@recompile.se> (subscription required). note that this list is public. π
the developers can be reached privately at <mandos@recompile.se> (OpenPGP key fingerprint 153A 37F1 0BBA 0435 987F 2C4A 7223 2973 CA34 C2C4 for encrypted mail). π
π¦ EXAMPLE π¦
note that normally, command line options will not be given directly, but via options for the Mandos plugin-runner(8mandos). so like, she's usually getting her instructions secondhand. π
normal invocation needs no options:
password-prompt
show a prefix before the prompt; in this case, a host name. it might be useful to be reminded of which host needs a password, in case of KVM switches, etc. thoughtful queen. π
password-prompt --prefix=host.example.org:
run in debug mode.
password-prompt --debug
π₯ SECURITY π₯
on its own, this program is very simple, and does not exactly present any security risks. she's lowkey harmless. π«Ά
the one thing that could be considered worthy of note is this: this program is meant to be run by plugin-runner(8mandos), and will, when run standalone, outside, in a normal environment, immediately output on its standard output any presumably secret password it just received.
so when running this program standalone (which should never normally be done), take care not to type in any real secret password by force of habit, since it would then immediately be shown as output. bestie. do NOT muscle-memory your actual password into this thing. π
to further alleviate any risk of being locked out of a system, the plugin-runner(8mandos) has a fallback mode which does the same thing as this program, only with less features. the backup backup. π
π« SEE ALSO π«
intro(8mandos), mandos-client(8mandos), plugin-runner(8mandos), plymouthd(8)
π COPYRIGHT π
Copyright Β© 2008-2019 Teddy Hogeborn, BjΓΆrn PΓ₯hlsson
this manual page is part of Mandos.
Mandos is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Mandos is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with Mandos. if not, see http://www.gnu.org/licenses/. πΈ
and that's the whole page, bestie!! π this was Mandos version 1.8.19, dated 2019-07-27, and yes the manual page is PASSWORD-PROMPT(8mandos). slay, bye!! β¨ππ¦
π¦ where this page comes from
- debian trixie: mandos-client 1.8.19-1 Β· GPL-3.0-or-later
- ubuntu questing: mandos-client 1.8.19-1
- ubuntu resolute: mandos-client 1.8.19-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: mandos-client 1.8.19-1.1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms