/mandos/trunk

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