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