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