1
<?xml version="1.0" encoding="UTF-8"?>
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 "mandos-ctl">
5
<!ENTITY TIMESTAMP "2010-09-25">
6
<!ENTITY % common SYSTEM "common.ent">
10
<refentry xmlns:xi="http://www.w3.org/2001/XInclude">
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>
19
<firstname>Björn</firstname>
20
<surname>Påhlsson</surname>
22
<email>belorn@fukt.bsnet.se</email>
26
<firstname>Teddy</firstname>
27
<surname>Hogeborn</surname>
29
<email>teddy@fukt.bsnet.se</email>
35
<holder>Teddy Hogeborn</holder>
36
<holder>Björn Påhlsson</holder>
38
<xi:include href="legalnotice.xml"/>
42
<refentrytitle>&COMMANDNAME;</refentrytitle>
43
<manvolnum>8</manvolnum>
47
<refname><command>&COMMANDNAME;</command></refname>
49
Control the operation of the Mandos server
55
<command>&COMMANDNAME;</command>
57
<arg choice="plain"><option>--enable</option></arg>
58
<arg choice="plain"><option>-e</option></arg>
60
<arg choice="plain"><option>--disable</option></arg>
61
<arg choice="plain"><option>-d</option></arg>
65
<arg choice="plain"><option>--bump-timeout</option></arg>
66
<arg choice="plain"><option>-b</option></arg>
70
<arg choice="plain"><option>--start-checker</option></arg>
74
<arg choice="plain"><option>--stop-checker</option></arg>
78
<arg choice="plain"><option>--remove</option></arg>
79
<arg choice="plain"><option>-r</option></arg>
83
<arg choice="plain"><option>--checker
84
<replaceable>COMMAND</replaceable></option></arg>
85
<arg choice="plain"><option>-c
86
<replaceable>COMMAND</replaceable></option></arg>
90
<arg choice="plain"><option>--timeout
91
<replaceable>TIME</replaceable></option></arg>
92
<arg choice="plain"><option>-t
93
<replaceable>TIME</replaceable></option></arg>
97
<arg choice="plain"><option>--interval
98
<replaceable>TIME</replaceable></option></arg>
99
<arg choice="plain"><option>-i
100
<replaceable>TIME</replaceable></option></arg>
104
<arg choice="plain"><option>--host
105
<replaceable>STRING</replaceable></option></arg>
106
<arg choice="plain"><option>-H
107
<replaceable>STRING</replaceable></option></arg>
111
<arg choice="plain"><option>--secret
112
<replaceable>FILENAME</replaceable></option></arg>
113
<arg choice="plain"><option>-s
114
<replaceable>FILENAME</replaceable></option></arg>
118
<arg choice="plain"><option>--approve</option></arg>
119
<arg choice="plain"><option>-A</option></arg>
121
<arg choice="plain"><option>--deny</option></arg>
122
<arg choice="plain"><option>-D</option></arg>
126
<arg choice="plain"><option>--all</option></arg>
127
<arg choice="plain"><option>-a</option></arg>
128
<arg rep='repeat' choice='plain'>
129
<replaceable>CLIENT</replaceable>
134
<command>&COMMANDNAME;</command>
136
<arg choice="plain"><option>--verbose</option></arg>
137
<arg choice="plain"><option>-v</option></arg>
140
<arg rep='repeat' choice='plain'>
141
<replaceable>CLIENT</replaceable>
146
<command>&COMMANDNAME;</command>
148
<arg choice="plain"><option>--is-enabled</option></arg>
149
<arg choice="plain"><option>-V</option></arg>
151
<arg choice='plain'><replaceable>CLIENT</replaceable></arg>
154
<command>&COMMANDNAME;</command>
156
<arg choice="plain"><option>--help</option></arg>
157
<arg choice="plain"><option>-h</option></arg>
161
<command>&COMMANDNAME;</command>
163
<arg choice="plain"><option>--version</option></arg>
164
<arg choice="plain"><option>-v</option></arg>
169
<refsect1 id="description">
170
<title>DESCRIPTION</title>
172
<command>&COMMANDNAME;</command> is a program to control the
173
operation of the Mandos server <citerefentry><refentrytitle
174
>mandos</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
177
This program can be used to change client settings, approve or
178
deny client requests, and to remove clients from the server.
182
<refsect1 id="purpose">
183
<title>PURPOSE</title>
185
The purpose of this is to enable <emphasis>remote and unattended
186
rebooting</emphasis> of client host computer with an
187
<emphasis>encrypted root file system</emphasis>. See <xref
188
linkend="overview"/> for details.
192
<refsect1 id="options">
193
<title>OPTIONS</title>
197
<term><option>--help</option></term>
198
<term><option>-h</option></term>
201
Show a help message and exit
207
<term><option>--enable</option></term>
208
<term><option>-e</option></term>
211
Enable client(s). An enabled client will be eligble to
218
<term><option>--disable</option></term>
219
<term><option>-d</option></term>
222
Disable client(s). A disabled client will not be eligble
223
to receive its secret, and no checkers will be started for
230
<term><option>--bump-timeout</option></term>
233
Bump the timeout of the specified client(s), just as if a
234
checker had completed successfully for it/them.
240
<term><option>--start-checker</option></term>
243
Start a new checker now for the specified client(s).
249
<term><option>--stop-checker</option></term>
252
Stop any running checker for the specified client(s).
258
<term><option>--remove</option></term>
259
<term><option>-r</option></term>
262
Remove the specified client(s) from the server.
268
<term><option>--checker
269
<replaceable>COMMAND</replaceable></option></term>
271
<replaceable>COMMAND</replaceable></option></term>
274
Set the <varname>checker</varname> option of the specified
275
client(s); see <citerefentry><refentrytitle
276
>mandos-client.conf</refentrytitle><manvolnum>5</manvolnum
283
<term><option>--timeout
284
<replaceable>TIME</replaceable></option></term>
286
<replaceable>TIME</replaceable></option></term>
289
Set the <varname>timeout</varname> option of the specified
290
client(s); see <citerefentry><refentrytitle
291
>mandos-client.conf</refentrytitle><manvolnum>5</manvolnum
298
<term><option>--interval
299
<replaceable>TIME</replaceable></option></term>
301
<replaceable>TIME</replaceable></option></term>
304
Set the <varname>interval</varname> option of the specified
305
client(s); see <citerefentry><refentrytitle
306
>mandos-client.conf</refentrytitle><manvolnum>5</manvolnum
314
<replaceable>STRING</replaceable></option></term>
316
<replaceable>STRING</replaceable></option></term>
319
Set the <varname>host</varname> option of the specified
320
client(s); see <citerefentry><refentrytitle
321
>mandos-client.conf</refentrytitle><manvolnum>5</manvolnum
328
<term><option>--secret
329
<replaceable>FILENAME</replaceable></option></term>
331
<replaceable>FILENAME</replaceable></option></term>
334
Set the <varname>secfile</varname> option of the specified
335
client(s); see <citerefentry><refentrytitle
336
>mandos-client.conf</refentrytitle><manvolnum>5</manvolnum
343
<term><option>--approve</option></term>
344
<term><option>-A</option></term>
347
Approve client(s) if currently waiting for approval.
353
<term><option>--deny</option></term>
354
<term><option>-D</option></term>
357
Deny client(s) if currently waiting for approval.
363
<term><option>--all</option></term>
364
<term><option>-a</option></term>
367
Make the client-modifying options modify <emphasis
368
>all</emphasis> clients.
374
<term><option>--verbose</option></term>
375
<term><option>-v</option></term>
378
Show all client settings, not just a subset.
384
<term><option>--is-enabled</option></term>
385
<term><option>-V</option></term>
388
Check if a single client is enabled or not, and exit with
389
a successful exit status only if the client is enabled.
397
<refsect1 id="overview">
398
<title>OVERVIEW</title>
399
<xi:include href="overview.xml"/>
401
This program is a small utility to generate new OpenPGP keys for
402
new Mandos clients, and to generate sections for inclusion in
403
<filename>clients.conf</filename> on the server.
407
<refsect1 id="exit_status">
408
<title>EXIT STATUS</title>
410
If the <option>--is-enabled</option> option is used, the exit
411
status will be 0 only if the specified client is enabled.
415
<!-- <refsect1 id="bugs"> -->
416
<!-- <title>BUGS</title> -->
421
<refsect1 id="example">
422
<title>EXAMPLE</title>
428
<userinput>&COMMANDNAME;</userinput>
434
To list <emphasis>all</emphasis> settings for the clients
435
named <quote>foo1.example.org</quote> and <quote
436
>foo2.example.org</quote>:
440
<!-- do not wrap this line -->
441
<userinput>&COMMANDNAME; --verbose foo1.example.org foo2.example.org</userinput>
448
To enable all clients:
451
<userinput>&COMMANDNAME; --enable --all</userinput>
457
To change timeout and interval value for the clients
458
named <quote>foo1.example.org</quote> and <quote
459
>foo2.example.org</quote>:
463
<!-- do not wrap this line -->
464
<userinput>&COMMANDNAME; --timeout="5m" --interval="1m" foo1.example.org foo2.example.org</userinput>
471
To approve all clients currently waiting for it:
475
<!-- do not wrap this line -->
476
<userinput>&COMMANDNAME; --approve --all</userinput>
482
<refsect1 id="security">
483
<title>SECURITY</title>
485
This program must be permitted to access the Mandos server via
486
the D-Bus interface. This normally requires the root user, but
487
could be configured otherwise by reconfiguring the D-Bus server.
491
<refsect1 id="see_also">
492
<title>SEE ALSO</title>
494
<citerefentry><refentrytitle>mandos</refentrytitle>
495
<manvolnum>8</manvolnum></citerefentry>,
496
<citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
497
<manvolnum>5</manvolnum></citerefentry>,
498
<citerefentry><refentrytitle>mandos-monitor</refentrytitle>
499
<manvolnum>8</manvolnum></citerefentry>
504
<!-- Local Variables: -->
505
<!-- time-stamp-start: "<!ENTITY TIMESTAMP [\"']" -->
506
<!-- time-stamp-end: "[\"']>" -->
507
<!-- time-stamp-format: "%:y-%02m-%02d" -->