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