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-26">
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>--approve-by-default</option
107
<arg choice="plain"><option>--deny-by-default</option></arg>
111
<arg choice="plain"><option>--approval-delay
112
<replaceable>TIME</replaceable></option></arg>
116
<arg choice="plain"><option>--approval-duration
117
<replaceable>TIME</replaceable></option></arg>
121
<arg choice="plain"><option>--interval
122
<replaceable>TIME</replaceable></option></arg>
123
<arg choice="plain"><option>-i
124
<replaceable>TIME</replaceable></option></arg>
128
<arg choice="plain"><option>--host
129
<replaceable>STRING</replaceable></option></arg>
130
<arg choice="plain"><option>-H
131
<replaceable>STRING</replaceable></option></arg>
135
<arg choice="plain"><option>--secret
136
<replaceable>FILENAME</replaceable></option></arg>
137
<arg choice="plain"><option>-s
138
<replaceable>FILENAME</replaceable></option></arg>
142
<arg choice="plain"><option>--approve</option></arg>
143
<arg choice="plain"><option>-A</option></arg>
145
<arg choice="plain"><option>--deny</option></arg>
146
<arg choice="plain"><option>-D</option></arg>
150
<arg choice="plain"><option>--all</option></arg>
151
<arg choice="plain"><option>-a</option></arg>
152
<arg rep='repeat' choice='plain'>
153
<replaceable>CLIENT</replaceable>
158
<command>&COMMANDNAME;</command>
160
<arg choice="plain"><option>--verbose</option></arg>
161
<arg choice="plain"><option>-v</option></arg>
164
<arg rep='repeat' choice='plain'>
165
<replaceable>CLIENT</replaceable>
170
<command>&COMMANDNAME;</command>
172
<arg choice="plain"><option>--is-enabled</option></arg>
173
<arg choice="plain"><option>-V</option></arg>
175
<arg choice='plain'><replaceable>CLIENT</replaceable></arg>
178
<command>&COMMANDNAME;</command>
180
<arg choice="plain"><option>--help</option></arg>
181
<arg choice="plain"><option>-h</option></arg>
185
<command>&COMMANDNAME;</command>
187
<arg choice="plain"><option>--version</option></arg>
188
<arg choice="plain"><option>-v</option></arg>
193
<refsect1 id="description">
194
<title>DESCRIPTION</title>
196
<command>&COMMANDNAME;</command> is a program to control the
197
operation of the Mandos server <citerefentry><refentrytitle
198
>mandos</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
201
This program can be used to change client settings, approve or
202
deny client requests, and to remove clients from the server.
206
<refsect1 id="purpose">
207
<title>PURPOSE</title>
209
The purpose of this is to enable <emphasis>remote and unattended
210
rebooting</emphasis> of client host computer with an
211
<emphasis>encrypted root file system</emphasis>. See <xref
212
linkend="overview"/> for details.
216
<refsect1 id="options">
217
<title>OPTIONS</title>
221
<term><option>--help</option></term>
222
<term><option>-h</option></term>
225
Show a help message and exit
231
<term><option>--enable</option></term>
232
<term><option>-e</option></term>
235
Enable client(s). An enabled client will be eligble to
242
<term><option>--disable</option></term>
243
<term><option>-d</option></term>
246
Disable client(s). A disabled client will not be eligble
247
to receive its secret, and no checkers will be started for
254
<term><option>--bump-timeout</option></term>
257
Bump the timeout of the specified client(s), just as if a
258
checker had completed successfully for it/them.
264
<term><option>--start-checker</option></term>
267
Start a new checker now for the specified client(s).
273
<term><option>--stop-checker</option></term>
276
Stop any running checker for the specified client(s).
282
<term><option>--remove</option></term>
283
<term><option>-r</option></term>
286
Remove the specified client(s) from the server.
292
<term><option>--checker
293
<replaceable>COMMAND</replaceable></option></term>
295
<replaceable>COMMAND</replaceable></option></term>
298
Set the <varname>checker</varname> option of the specified
299
client(s); see <citerefentry><refentrytitle
300
>mandos-clients.conf</refentrytitle><manvolnum
301
>5</manvolnum></citerefentry>.
307
<term><option>--timeout
308
<replaceable>TIME</replaceable></option></term>
310
<replaceable>TIME</replaceable></option></term>
313
Set the <varname>timeout</varname> option of the specified
314
client(s); see <citerefentry><refentrytitle
315
>mandos-clients.conf</refentrytitle><manvolnum
316
>5</manvolnum></citerefentry>.
322
<term><option>--interval
323
<replaceable>TIME</replaceable></option></term>
325
<replaceable>TIME</replaceable></option></term>
328
Set the <varname>interval</varname> option of the
329
specified client(s); see <citerefentry><refentrytitle
330
>mandos-clients.conf</refentrytitle><manvolnum
331
>5</manvolnum></citerefentry>.
337
<term><option>--approve-by-default</option></term>
338
<term><option>--deny-by-default</option></term>
341
Set the <varname>approved_by_default</varname> option of
342
the specified client(s) to <literal>True</literal> or
343
<literal>False</literal>, respectively; see
344
<citerefentry><refentrytitle
345
>mandos-clients.conf</refentrytitle><manvolnum
346
>5</manvolnum></citerefentry>.
352
<term><option>--approval-delay
353
<replaceable>TIME</replaceable></option></term>
356
Set the <varname>approval_delay</varname> option of the
357
specified client(s); see <citerefentry><refentrytitle
358
>mandos-clients.conf</refentrytitle><manvolnum
359
>5</manvolnum></citerefentry>.
365
<term><option>--approval-duration
366
<replaceable>TIME</replaceable></option></term>
369
Set the <varname>approval_duration</varname> option of the
370
specified client(s); see <citerefentry><refentrytitle
371
>mandos-clients.conf</refentrytitle><manvolnum
372
>5</manvolnum></citerefentry>.
379
<replaceable>STRING</replaceable></option></term>
381
<replaceable>STRING</replaceable></option></term>
384
Set the <varname>host</varname> option of the specified
385
client(s); see <citerefentry><refentrytitle
386
>mandos-clients.conf</refentrytitle><manvolnum
387
>5</manvolnum></citerefentry>.
393
<term><option>--secret
394
<replaceable>FILENAME</replaceable></option></term>
396
<replaceable>FILENAME</replaceable></option></term>
399
Set the <varname>secfile</varname> option of the specified
400
client(s); see <citerefentry><refentrytitle
401
>mandos-clients.conf</refentrytitle><manvolnum
402
>5</manvolnum></citerefentry>.
408
<term><option>--approve</option></term>
409
<term><option>-A</option></term>
412
Approve client(s) if currently waiting for approval.
418
<term><option>--deny</option></term>
419
<term><option>-D</option></term>
422
Deny client(s) if currently waiting for approval.
428
<term><option>--all</option></term>
429
<term><option>-a</option></term>
432
Make the client-modifying options modify <emphasis
433
>all</emphasis> clients.
439
<term><option>--verbose</option></term>
440
<term><option>-v</option></term>
443
Show all client settings, not just a subset.
449
<term><option>--is-enabled</option></term>
450
<term><option>-V</option></term>
453
Check if a single client is enabled or not, and exit with
454
a successful exit status only if the client is enabled.
462
<refsect1 id="overview">
463
<title>OVERVIEW</title>
464
<xi:include href="overview.xml"/>
466
This program is a small utility to generate new OpenPGP keys for
467
new Mandos clients, and to generate sections for inclusion in
468
<filename>clients.conf</filename> on the server.
472
<refsect1 id="exit_status">
473
<title>EXIT STATUS</title>
475
If the <option>--is-enabled</option> option is used, the exit
476
status will be 0 only if the specified client is enabled.
480
<!-- <refsect1 id="bugs"> -->
481
<!-- <title>BUGS</title> -->
486
<refsect1 id="example">
487
<title>EXAMPLE</title>
493
<userinput>&COMMANDNAME;</userinput>
499
To list <emphasis>all</emphasis> settings for the clients
500
named <quote>foo1.example.org</quote> and <quote
501
>foo2.example.org</quote>:
505
<!-- do not wrap this line -->
506
<userinput>&COMMANDNAME; --verbose foo1.example.org foo2.example.org</userinput>
513
To enable all clients:
516
<userinput>&COMMANDNAME; --enable --all</userinput>
522
To change timeout and interval value for the clients
523
named <quote>foo1.example.org</quote> and <quote
524
>foo2.example.org</quote>:
528
<!-- do not wrap this line -->
529
<userinput>&COMMANDNAME; --timeout="5m" --interval="1m" foo1.example.org foo2.example.org</userinput>
536
To approve all clients currently waiting for it:
539
<userinput>&COMMANDNAME; --approve --all</userinput>
544
<refsect1 id="security">
545
<title>SECURITY</title>
547
This program must be permitted to access the Mandos server via
548
the D-Bus interface. This normally requires the root user, but
549
could be configured otherwise by reconfiguring the D-Bus server.
553
<refsect1 id="see_also">
554
<title>SEE ALSO</title>
556
<citerefentry><refentrytitle>mandos</refentrytitle>
557
<manvolnum>8</manvolnum></citerefentry>,
558
<citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
559
<manvolnum>5</manvolnum></citerefentry>,
560
<citerefentry><refentrytitle>mandos-monitor</refentrytitle>
561
<manvolnum>8</manvolnum></citerefentry>
566
<!-- Local Variables: -->
567
<!-- time-stamp-start: "<!ENTITY TIMESTAMP [\"']" -->
568
<!-- time-stamp-end: "[\"']>" -->
569
<!-- time-stamp-format: "%:y-%02m-%02d" -->