'\" t .\" Title: password-prompt .\" Author: Bj\(:orn P\(oahlsson .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2017-02-23 .\" Manual: Mandos Manual .\" Source: Mandos 1.7.15 .\" Language: English .\" .TH "PASSWORD\-PROMPT" "8mandos" "2017\-02\-23" "Mandos 1.7.15" "Mandos Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" password-prompt \- Prompt for a password and output it\&. .SH "SYNOPSIS" .HP \w'\fBpassword\-prompt\fR\ 'u \fBpassword\-prompt\fR [\fB\-\-prefix\ \fR\fB\fIPREFIX\fR\fR | \fB\-p\ \fR\fIPREFIX\fR] .br [\fB\-\-debug\fR] .HP \w'\fBpassword\-prompt\fR\ 'u \fBpassword\-prompt\fR {\fB\-\-help\fR | \fB\-?\fR} .HP \w'\fBpassword\-prompt\fR\ 'u \fBpassword\-prompt\fR \fB\-\-usage\fR .HP \w'\fBpassword\-prompt\fR\ 'u \fBpassword\-prompt\fR {\fB\-\-version\fR | \fB\-V\fR} .SH "DESCRIPTION" .PP All \fBpassword\-prompt\fR does is prompt for a password and output any given password to standard output\&. .PP This program is not very useful on its own\&. This program is really meant to run as a plugin in the Mandos client\-side system, where it is used as a fallback and alternative to retrieving passwords from a Mandos server\&. .PP This program is little more than a \fBgetpass\fR(3) wrapper, although actual use of that function is not guaranteed or implied\&. .SH "OPTIONS" .PP This program is commonly not invoked from the command line; it is normally started by the Mandos plugin runner, see \fBplugin-runner\fR(8mandos)\&. Any command line options this program accepts are therefore normally provided by the plugin runner, and not directly\&. .PP \fB\-\-prefix=\fR\fB\fIPREFIX\fR\fR, \fB\-p \fR\fB\fIPREFIX\fR\fR .RS 4 Prefix string shown before the password prompt\&. .RE .PP \fB\-\-debug\fR .RS 4 Enable debug mode\&. This will enable a lot of output to standard error about what the program is doing\&. The program will still perform all other functions normally\&. .RE .PP \fB\-\-help\fR, \fB\-?\fR .RS 4 Gives a help message about options and their meanings\&. .RE .PP \fB\-\-usage\fR .RS 4 Gives a short usage message\&. .RE .PP \fB\-\-version\fR, \fB\-V\fR .RS 4 Prints the program version\&. .RE .SH "EXIT STATUS" .PP If exit status is 0, the output from the program is the password as it was read\&. Otherwise, if exit status is 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\&. .SH "ENVIRONMENT" .PP \fBCRYPTTAB_SOURCE\fR, \fBCRYPTTAB_NAME\fR .RS 4 If set, 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\&. .sp These variables will normally be inherited from \fBplugin-runner\fR(8mandos), which will normally have inherited them from /scripts/local\-top/cryptroot in the initial RAM disk environment, which will have set them from parsing kernel arguments and /conf/conf\&.d/cryptroot (also in the initial RAM disk environment), which in turn will have been created when the initial RAM disk image was created by /usr/share/initramfs\-tools/hooks/cryptroot, by extracting the information of the root file system from /etc/crypttab\&. .sp This behavior is meant to exactly mirror the behavior of \fBaskpass\fR, the default password prompter\&. .RE .SH "BUGS" .PP Please report bugs to the Mandos development mailing list: (subscription required)\&. Note that this list is public\&. The developers can be reached privately at (OpenPGP key fingerprint 153A 37F1 0BBA 0435 987F 2C4A 7223 2973 CA34 C2C4 for encrypted mail)\&. .SH "EXAMPLE" .PP Note that normally, command line options will not be given directly, but via options for the Mandos \fBplugin-runner\fR(8mandos)\&. .PP Normal invocation needs no options: .PP \fBpassword\-prompt\fR .PP 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\&. .PP \fBpassword\-prompt \-\-prefix=host\&.example\&.org:\fR .PP Run in debug mode\&. .PP \fBpassword\-prompt \-\-debug\fR .SH "SECURITY" .PP On its own, this program is very simple, and does not exactly present any security risks\&. The one thing that could be considered worthy of note is this: This program is meant to be run by \fBplugin-runner\fR(8mandos), and will, when run standalone, outside, in a normal environment, immediately output on its standard output any presumably secret password it just received\&. Therefore, 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\&. .PP To further alleviate any risk of being locked out of a system, the \fBplugin-runner\fR(8mandos) has a fallback mode which does the same thing as this program, only with less features\&. .SH "SEE ALSO" .PP \fBintro\fR(8mandos) \fBcrypttab\fR(5) \fBmandos-client\fR(8mandos) \fBplugin-runner\fR(8mandos), .SH "COPYRIGHT" .br Copyright \(co 2008-2017 Teddy Hogeborn, Bj\(:orn P\(oahlsson .br .PP This manual page 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\&. .PP This manual page 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\&. .PP You should have received a copy of the GNU General Public License along with this program\&. If not, see \m[blue]\fBhttp://www\&.gnu\&.org/licenses/\fR\m[]\&. .sp