/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/password-prompt.xml

  • Committer: Teddy Hogeborn
  • Date: 2008-08-18 23:55:28 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080818235528-dn628nlbrtzl7z4f
* Makefile: Bug fix: fixed creation of man pages for section 5 pages.

* mandos (main): Changed from requiring "[server]" in mandos.conf(5)
                 to requiring "[DEFAULT]".

* mandos.conf ([server]): Renamed to "[DEFAULT]".

* mandos.conf.xml: Removed <?xml-stylesheet>.  New entity "&OVERVIEW;"
                   referring to "overview.xml".
  (DESCRIPTION): Updated to specify the syntax more precisely.  Use
                 <varname> around the option names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
 
1
<?xml version='1.0' encoding='UTF-8'?>
 
2
<?xml-stylesheet type="text/xsl"
 
3
        href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>
2
4
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
5
        "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 
6
<!ENTITY VERSION "1.0">
4
7
<!ENTITY COMMANDNAME "password-prompt">
5
 
<!ENTITY TIMESTAMP "2019-07-27">
6
 
<!ENTITY % common SYSTEM "../common.ent">
7
 
%common;
8
8
]>
9
9
 
10
 
<refentry xmlns:xi="http://www.w3.org/2001/XInclude">
 
10
<refentry>
11
11
  <refentryinfo>
12
 
    <title>Mandos Manual</title>
13
 
    <!-- NWalsh’s docbook scripts use this to generate the footer: -->
14
 
    <productname>Mandos</productname>
15
 
    <productnumber>&version;</productnumber>
16
 
    <date>&TIMESTAMP;</date>
 
12
    <title>&COMMANDNAME;</title>
 
13
    <!-- NWalsh's docbook scripts use this to generate the footer: -->
 
14
    <productname>&COMMANDNAME;</productname>
 
15
    <productnumber>&VERSION;</productnumber>
17
16
    <authorgroup>
18
17
      <author>
19
18
        <firstname>Björn</firstname>
20
19
        <surname>Påhlsson</surname>
21
20
        <address>
22
 
          <email>belorn@recompile.se</email>
 
21
          <email>belorn@fukt.bsnet.se</email>
23
22
        </address>
24
23
      </author>
25
24
      <author>
26
25
        <firstname>Teddy</firstname>
27
26
        <surname>Hogeborn</surname>
28
27
        <address>
29
 
          <email>teddy@recompile.se</email>
 
28
          <email>teddy@fukt.bsnet.se</email>
30
29
        </address>
31
30
      </author>
32
31
    </authorgroup>
33
32
    <copyright>
34
33
      <year>2008</year>
35
 
      <year>2009</year>
36
 
      <year>2010</year>
37
 
      <year>2011</year>
38
 
      <year>2012</year>
39
 
      <year>2013</year>
40
 
      <year>2014</year>
41
 
      <year>2015</year>
42
 
      <year>2016</year>
43
 
      <year>2017</year>
44
 
      <year>2018</year>
45
 
      <year>2019</year>
46
 
      <holder>Teddy Hogeborn</holder>
47
 
      <holder>Björn Påhlsson</holder>
 
34
      <holder>Teddy Hogeborn &amp; Björn Påhlsson</holder>
48
35
    </copyright>
49
 
    <xi:include href="../legalnotice.xml"/>
 
36
    <legalnotice>
 
37
      <para>
 
38
        This manual page is free software: you can redistribute it
 
39
        and/or modify it under the terms of the GNU General Public
 
40
        License as published by the Free Software Foundation,
 
41
        either version 3 of the License, or (at your option) any
 
42
        later version.
 
43
      </para>
 
44
 
 
45
      <para>
 
46
        This manual page is distributed in the hope that it will
 
47
        be useful, but WITHOUT ANY WARRANTY; without even the
 
48
        implied warranty of MERCHANTABILITY or FITNESS FOR A
 
49
        PARTICULAR PURPOSE.  See the GNU General Public License
 
50
        for more details.
 
51
      </para>
 
52
 
 
53
      <para>
 
54
        You should have received a copy of the GNU General Public
 
55
        License along with this program; If not, see
 
56
        <ulink url="http://www.gnu.org/licenses/"/>.
 
57
      </para>
 
58
    </legalnotice>
50
59
  </refentryinfo>
51
 
  
 
60
 
52
61
  <refmeta>
53
62
    <refentrytitle>&COMMANDNAME;</refentrytitle>
54
63
    <manvolnum>8mandos</manvolnum>
56
65
  
57
66
  <refnamediv>
58
67
    <refname><command>&COMMANDNAME;</command></refname>
59
 
    <refpurpose>Prompt for a password and output it.</refpurpose>
 
68
    <refpurpose>
 
69
      Passprompt for luks during boot sequence
 
70
    </refpurpose>
60
71
  </refnamediv>
61
72
  
62
73
  <refsynopsisdiv>
63
74
    <cmdsynopsis>
64
75
      <command>&COMMANDNAME;</command>
65
 
      <group choice="opt">
66
 
        <arg choice="plain"><option>--prefix <replaceable
67
 
        >PREFIX</replaceable></option></arg>
68
 
        <arg choice="plain"><option>-p </option><replaceable
69
 
        >PREFIX</replaceable></arg>
70
 
      </group>
71
 
      <sbr/>
72
 
      <arg choice="opt">
73
 
        <option>--prompt <replaceable>PROMPT</replaceable></option>
74
 
      </arg>
75
 
      <arg choice="opt"><option>--debug</option></arg>
76
 
    </cmdsynopsis>
77
 
    <cmdsynopsis>
78
 
      <command>&COMMANDNAME;</command>
79
 
      <group choice="req">
80
 
        <arg choice="plain"><option>--help</option></arg>
81
 
        <arg choice="plain"><option>-?</option></arg>
82
 
      </group>
83
 
    </cmdsynopsis>
84
 
    <cmdsynopsis>
85
 
      <command>&COMMANDNAME;</command>
86
 
      <arg choice="plain"><option>--usage</option></arg>
87
 
    </cmdsynopsis>
88
 
    <cmdsynopsis>
89
 
      <command>&COMMANDNAME;</command>
90
 
      <group choice="req">
91
 
        <arg choice="plain"><option>--version</option></arg>
92
 
        <arg choice="plain"><option>-V</option></arg>
93
 
      </group>
94
 
    </cmdsynopsis>
 
76
      <arg choice='opt'>--prefix<arg choice='plain'>PREFIX</arg></arg>
 
77
      <arg choice='opt'>--debug</arg>
 
78
    </cmdsynopsis>
 
79
    <cmdsynopsis>
 
80
      <command>&COMMANDNAME;</command>
 
81
      <arg choice='plain'>--help</arg>
 
82
    </cmdsynopsis>
 
83
    <cmdsynopsis>
 
84
      <command>&COMMANDNAME;</command>
 
85
      <arg choice='plain'>--usage</arg>
 
86
    </cmdsynopsis>
 
87
    <cmdsynopsis>
 
88
      <command>&COMMANDNAME;</command>
 
89
      <arg choice='plain'>--version</arg>
 
90
    </cmdsynopsis>    
95
91
  </refsynopsisdiv>
96
 
  
 
92
 
97
93
  <refsect1 id="description">
98
94
    <title>DESCRIPTION</title>
99
95
    <para>
100
 
      All <command>&COMMANDNAME;</command> does is prompt for a
101
 
      password and output any given password to standard output.
102
 
    </para>
103
 
    <para>
104
 
      This program is not very useful on its own.  This program is
105
 
      really meant to run as a plugin in the <application
106
 
      >Mandos</application> client-side system, where it is used as a
107
 
      fallback and alternative to retrieving passwords from a
108
 
      <application >Mandos</application> server.
109
 
    </para>
110
 
    <para>
111
 
      This program is little more than a <citerefentry><refentrytitle
112
 
      >getpass</refentrytitle><manvolnum>3</manvolnum></citerefentry>
113
 
      wrapper, although actual use of that function is not guaranteed
114
 
      or implied.
115
 
    </para>
116
 
    <para>
117
 
      This program tries to detect if a Plymouth daemon
118
 
      (<citerefentry><refentrytitle
119
 
      >plymouthd</refentrytitle><manvolnum>8</manvolnum></citerefentry>)
120
 
      is running, by looking for a
121
 
      <filename>/run/plymouth/pid</filename> file or a process named
122
 
      <quote><literal>plymouthd</literal></quote>.  If it is detected,
123
 
      this process will immediately exit without doing anything.
 
96
      <command>&COMMANDNAME;</command> is a terminal program that ask for
 
97
      passwords during boot sequence. It is a plugin to
 
98
      <firstterm>mandos</firstterm>, and is used as a fallback and
 
99
      alternative to retriving passwords from a mandos server. During
 
100
      boot sequence the user is prompted for the disk password, and
 
101
      when a password is given it then gets forwarded to
 
102
      <acronym>LUKS</acronym>.
124
103
    </para>
125
104
  </refsect1>
126
105
  
127
106
  <refsect1 id="options">
128
107
    <title>OPTIONS</title>
129
108
    <para>
130
 
      This program is commonly not invoked from the command line; it
131
 
      is normally started by the <application>Mandos</application>
132
 
      plugin runner, see <citerefentry><refentrytitle
133
 
      >plugin-runner</refentrytitle><manvolnum>8mandos</manvolnum>
134
 
      </citerefentry>.  Any command line options this program accepts
135
 
      are therefore normally provided by the plugin runner, and not
136
 
      directly.
 
109
      Commonly not invoked as command lines but from configuration
 
110
      file of plugin runner.
137
111
    </para>
138
 
    
 
112
 
139
113
    <variablelist>
140
114
      <varlistentry>
141
 
        <term><option>--prefix=<replaceable
142
 
        >PREFIX</replaceable></option></term>
143
 
        <term><option>-p
144
 
        <replaceable>PREFIX</replaceable></option></term>
145
 
        <listitem>
146
 
          <para>
147
 
            Prefix string shown before the password prompt.
148
 
          </para>
149
 
        </listitem>
150
 
      </varlistentry>
151
 
      
152
 
      <varlistentry>
153
 
        <term><option>--prompt=<replaceable
154
 
        >PROMPT</replaceable></option></term>
155
 
        <listitem>
156
 
          <para>
157
 
            The password prompt.  Using this option will make this
158
 
            program ignore the <envar>CRYPTTAB_SOURCE</envar> and
159
 
            <envar>CRYPTTAB_NAME</envar> environment variables.
160
 
          </para>
161
 
        </listitem>
162
 
      </varlistentry>
163
 
      
164
 
      <varlistentry>
165
 
        <term><option>--debug</option></term>
166
 
        <listitem>
167
 
          <para>
168
 
            Enable debug mode.  This will enable a lot of output to
169
 
            standard error about what the program is doing.  The
170
 
            program will still perform all other functions normally.
171
 
          </para>
172
 
        </listitem>
173
 
      </varlistentry>
174
 
      
175
 
      <varlistentry>
176
 
        <term><option>--help</option></term>
177
 
        <term><option>-?</option></term>
178
 
        <listitem>
179
 
          <para>
180
 
            Gives a help message about options and their meanings.
181
 
          </para>
182
 
        </listitem>
183
 
      </varlistentry>
184
 
      
185
 
      <varlistentry>
186
 
        <term><option>--usage</option></term>
187
 
        <listitem>
188
 
          <para>
189
 
            Gives a short usage message.
190
 
          </para>
191
 
        </listitem>
192
 
      </varlistentry>
193
 
      
194
 
      <varlistentry>
195
 
        <term><option>--version</option></term>
196
 
        <term><option>-V</option></term>
197
 
        <listitem>
198
 
          <para>
199
 
            Prints the program version.
200
 
          </para>
201
 
        </listitem>
202
 
      </varlistentry>
 
115
        <term><literal>-p</literal>, <literal>--prefix=<replaceable>PREFIX
 
116
        </replaceable></literal></term>
 
117
        <listitem>
 
118
          <para>
 
119
            Prefix used before the passprompt
 
120
          </para>
 
121
        </listitem>
 
122
      </varlistentry>
 
123
      
 
124
      <varlistentry>
 
125
        <term><literal>--debug</literal></term>
 
126
        <listitem>
 
127
          <para>
 
128
            Debug mode
 
129
          </para>
 
130
        </listitem>
 
131
      </varlistentry>
 
132
      
 
133
      <varlistentry>
 
134
        <term><literal>-?</literal>, <literal>--help</literal></term>
 
135
        <listitem>
 
136
          <para>
 
137
            Gives a help message
 
138
          </para>
 
139
        </listitem>
 
140
      </varlistentry>
 
141
      
 
142
      <varlistentry>
 
143
        <term><literal>--usage</literal></term>
 
144
        <listitem>
 
145
          <para>
 
146
            Gives a short usage message
 
147
          </para>
 
148
        </listitem>
 
149
      </varlistentry>
 
150
 
 
151
      <varlistentry>
 
152
        <term><literal>-V</literal>, <literal>--version</literal></term>
 
153
        <listitem>
 
154
          <para>
 
155
            Prints the program version
 
156
          </para>
 
157
        </listitem>
 
158
      </varlistentry>            
203
159
    </variablelist>
204
160
  </refsect1>
205
 
  
 
161
 
206
162
  <refsect1 id="exit_status">
207
163
    <title>EXIT STATUS</title>
208
164
    <para>
209
 
      If exit status is 0, the output from the program is the password
210
 
      as it was read.  Otherwise, if exit status is other than 0, the
211
 
      program has encountered an error, and any output so far could be
212
 
      corrupt and/or truncated, and should therefore be ignored.
213
165
    </para>
214
166
  </refsect1>
215
 
  
 
167
 
216
168
  <refsect1 id="environment">
217
169
    <title>ENVIRONMENT</title>
218
 
    <variablelist>
219
 
      <varlistentry>
220
 
        <term><envar>CRYPTTAB_SOURCE</envar></term>
221
 
        <term><envar>CRYPTTAB_NAME</envar></term>
222
 
        <listitem>
223
 
          <para>
224
 
            If set, and if the <option>--prompt</option> option is not
225
 
            used, these environment variables will be assumed to
226
 
            contain the source device name and the target device
227
 
            mapper name, respectively, and will be shown as part of
228
 
            the prompt.
229
 
        </para>
230
 
        <para>
231
 
          These variables will normally be inherited from
232
 
          <citerefentry><refentrytitle>plugin-runner</refentrytitle>
233
 
          <manvolnum>8mandos</manvolnum></citerefentry>, which might
234
 
          have in turn inherited them from its calling process.
235
 
        </para>
236
 
        <para>
237
 
          This behavior is meant to exactly mirror the behavior of
238
 
          <command>askpass</command>, the default password prompter
239
 
          from initramfs-tools.
240
 
        </para>
241
 
        </listitem>
242
 
      </varlistentry>
243
 
    </variablelist>
 
170
    <para>
 
171
    </para>
 
172
  </refsect1>
 
173
 
 
174
  <refsect1 id="files">
 
175
    <title>FILES</title>
 
176
    <para>
 
177
    </para>
244
178
  </refsect1>
245
179
  
246
180
  <refsect1 id="bugs">
247
181
    <title>BUGS</title>
248
 
    <xi:include href="../bugs.xml"/>
249
 
  </refsect1>
250
 
  
 
182
    <para>
 
183
    </para>
 
184
  </refsect1>  
 
185
 
251
186
  <refsect1 id="example">
252
187
    <title>EXAMPLE</title>
253
188
    <para>
254
 
      Note that normally, command line options will not be given
255
 
      directly, but via options for the Mandos <citerefentry
256
 
      ><refentrytitle>plugin-runner</refentrytitle>
257
 
      <manvolnum>8mandos</manvolnum></citerefentry>.
258
189
    </para>
259
 
    <informalexample>
260
 
      <para>
261
 
        Normal invocation needs no options:
262
 
      </para>
263
 
      <para>
264
 
        <userinput>&COMMANDNAME;</userinput>
265
 
      </para>
266
 
    </informalexample>
267
 
    <informalexample>
268
 
      <para>
269
 
        Show a prefix before the prompt; in this case, a host name.
270
 
        It might be useful to be reminded of which host needs a
271
 
        password, in case of <acronym>KVM</acronym> switches, etc.
272
 
      </para>
273
 
      <para>
274
 
 
275
 
<!-- do not wrap this line -->
276
 
<userinput>&COMMANDNAME; --prefix=host.example.org:</userinput>
277
 
 
278
 
      </para>
279
 
    </informalexample>
280
 
    <informalexample>
281
 
      <para>
282
 
        Run in debug mode.
283
 
      </para>
284
 
      <para>
285
 
        <!-- do not wrap this line -->
286
 
        <userinput>&COMMANDNAME; --debug</userinput>
287
 
      </para>
288
 
    </informalexample>
289
190
  </refsect1>
290
 
  
 
191
 
291
192
  <refsect1 id="security">
292
193
    <title>SECURITY</title>
293
194
    <para>
294
 
      On its own, this program is very simple, and does not exactly
295
 
      present any security risks.  The one thing that could be
296
 
      considered worthy of note is this: This program is meant to be
297
 
      run by <citerefentry><refentrytitle
298
 
      >plugin-runner</refentrytitle><manvolnum>8mandos</manvolnum>
299
 
      </citerefentry>, and will, when run standalone, outside, in a
300
 
      normal environment, immediately output on its standard output
301
 
      any presumably secret password it just received.  Therefore,
302
 
      when running this program standalone (which should never
303
 
      normally be done), take care not to type in any real secret
304
 
      password by force of habit, since it would then immediately be
305
 
      shown as output.
306
 
    </para>
307
 
    <para>
308
 
      To further alleviate any risk of being locked out of a system,
309
 
      the <citerefentry><refentrytitle>plugin-runner</refentrytitle>
310
 
      <manvolnum>8mandos</manvolnum></citerefentry> has a fallback
311
 
      mode which does the same thing as this program, only with less
312
 
      features.
313
195
    </para>
314
196
  </refsect1>
315
 
  
 
197
 
316
198
  <refsect1 id="see_also">
317
199
    <title>SEE ALSO</title>
318
200
    <para>
319
 
      <citerefentry><refentrytitle>intro</refentrytitle>
320
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
321
 
      <citerefentry><refentrytitle>mandos-client</refentrytitle>
322
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
323
 
      <citerefentry><refentrytitle>plugin-runner</refentrytitle>
324
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
325
 
      <citerefentry><refentrytitle>plymouthd</refentrytitle>
326
 
      <manvolnum>8</manvolnum></citerefentry>
 
201
      <citerefentry><refentrytitle>mandos</refentrytitle>
 
202
      <manvolnum>8</manvolnum></citerefentry>, <citerefentry>
 
203
      <refentrytitle>plugin-runner</refentrytitle>
 
204
      <manvolnum>8mandos</manvolnum></citerefentry> and <citerefentry>
 
205
      <refentrytitle>password-request</refentrytitle>
 
206
      <manvolnum>8mandos</manvolnum></citerefentry>
327
207
    </para>
328
 
  </refsect1>
 
208
  </refsect1>  
 
209
  
329
210
</refentry>
330
 
<!-- Local Variables: -->
331
 
<!-- time-stamp-start: "<!ENTITY TIMESTAMP [\"']" -->
332
 
<!-- time-stamp-end: "[\"']>" -->
333
 
<!-- time-stamp-format: "%:y-%02m-%02d" -->
334
 
<!-- End: -->