Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / bosserver.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3bosserver - Initializes the BOS Server
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<bosserver>
11 S<<< [B<-noauth>] >>>
12 S<<< [B<-log>] >>>
13 S<<< [B<-enable_peer_stats>] >>>
14 S<<< [B<-auditlog> <I<log path>>] >>>
15 S<<< [B<-audit-interface> ( file | sysvmq )] >>>
16 S<<< [B<-enable_process_stats>] >>>
17 S<<< [B<-allow-dotted-principals>] >>>
18 S<<< [B<-cores>[=none|<I<path>>]] >>>
19 S<<< [B<-restricted>] >>>
20 S<<< [B<-rxmaxmtu> <I<bytes>>] >>>
21 S<<< [B<-rxbind>] >>>
22 S<<< [B<-syslog>[=<I<facility>>]>] >>>
23 S<<< [B<-transarc-logs>] >>>
24 S<<< [B<-pidfiles>[=<I<path>>]] >>>
25 S<<< [B<-nofork>] >>>
26 S<<< [B<-help>] >>>
27
28=for html
29</div>
30
31=head1 DESCRIPTION
32
33The bosserver command initializes the Basic OverSeer (BOS) Server
34(B<bosserver> process). In the conventional configuration, the binary file
35is located in the F</usr/afs/bin> directory on a file server machine.
36
37The BOS Server must run on every file server machine and helps to automate
38file server administration by performing the following tasks:
39
40=over 4
41
42=item *
43
44Monitors the other AFS server processes on the local machine, to make sure
45they are running correctly.
46
47=item *
48
49Automatically restarts failed processes, without contacting a human
50operator. When restarting multiple server processes simultaneously, the
51BOS Server takes interdependencies into account and initiates restarts in
52the correct order.
53
54=item *
55
56Processes commands from the bos suite that administrators issue to verify
57the status of server processes, install and start new processes, stop
58processes either temporarily or permanently, and restart halted processes.
59
60=item *
61
62Manages system configuration information: the files that list the cell's
63server encryption keys, database server machines, and users privileged to
64issue commands from the B<bos> and B<vos> suites.
65
66=back
67
68The BOS Server is configured via the F<BosConfig> configuration file.
69Normally, this file is managed via the B<bos> command suite rather than
70edited directly. See the L<BosConfig(5)> man page for the syntax of this
71file.
72
73The BOS Server will rewrite B<BosConfig> when shutting down, so changes
74made manually to it will be discarded. Instead, to change the BOS Server
75configuration only for the next restart of B<bosserver>, create a file
76named F</usr/afs/local/BosConfig.new>. If B<BosConfig.new> exists when
77B<bosserver> starts, it is renamed to F</usr/afs/local/BosConfig>,
78removing any existing file by that name, before B<bosserver> reads its
79configuration.
80
81The BOS Server logs a default set of important events in the file
82F</usr/afs/logs/BosLog>. To record the name of any user who performs a
83privileged B<bos> command (one that requires being listed in the
84F</usr/afs/etc/UserList> file), add the B<-log> flag. To display the
85contents of the B<BosLog> file, use the B<bos getlog> command.
86
87The first time that the BOS Server initializes on a server machine, it
88creates several files and subdirectories in the local F</usr/afs>
89directory, and sets their mode bits to protect them from unauthorized
90access. Each time it restarts, it checks that the mode bits still comply
91with the settings listed in the following chart. A question mark indicates
92that the BOS Server initially turns off the bit (sets it to the hyphen),
93but does not check it at restart.
94
95 /usr/afs drwxr?xr-x
96 /usr/afs/backup drwx???---
97 /usr/afs/bin drwxr?xr-x
98 /usr/afs/db drwx???---
99 /usr/afs/etc drwxr?xr-x
100 /usr/afs/etc/KeyFile -rw????---
101 /usr/afs/etc/UserList -rw?????--
102 /usr/afs/local drwx???---
103 /usr/afs/logs drwxr?xr-x
104
105If the mode bits do not comply, the BOS Server writes the following
106warning to the F<BosLog> file:
107
108 Bosserver reports inappropriate access on server directories
109
110However, the BOS Server does not reset the mode bits, so the administrator
111can set them to alternate values if desired (with the understanding that
112the warning message then appears at startup).
113
114This command does not use the syntax conventions of the AFS command
115suites. Provide the command name and all option names in full.
116
117=head1 OPTIONS
118
119=over 4
120
121=item B<-noauth>
122
123Turns off all authorization checks, and allows all connecting users to act as
124administrators, even unauthenticated users. The use of this option is
125inherently insecure, and should only be used in controlled environments for
126experimental or debug purposes. See L<NoAuth(5)>.
127
128=item B<-log>
129
130Records in the F</usr/afs/logs/BosLog> file the names of all users who
131successfully issue a privileged B<bos> command (one that requires being
132listed in the F</usr/afs/etc/UserList> file).
133
134=item B<-cores=>none|<I<path>>
135
136The argument none turns off core file generation. Otherwise, the
137argument is a path where core files will be stored.
138
139=item B<-auditlog> <I<log path>>
140
141Turns on audit logging, and sets the path for the audit log. The audit
142log records information about RPC calls, including the name of the RPC
143call, the host that submitted the call, the authenticated entity (user)
144that issued the call, the parameters for the call, and if the call
145succeeded or failed.
146
147=item B<-audit-interface> (file | sysvmq)
148
149Specifies what audit interface to use. Defaults to C<file>. See
150L<fileserver(8)> for an explanation of each interface.
151
152=item B<-enable_peer_stats>
153
154Activates the collection of Rx statistics and allocates memory for their
155storage. For each connection with a specific UDP port on another machine,
156a separate record is kept for each type of RPC (FetchFile, GetStatus, and
157so on) sent or received. To display or otherwise access the records, use
158the Rx Monitoring API.
159
160=item B<-enable_process_stats>
161
162Activates the collection of Rx statistics and allocates memory for their
163storage. A separate record is kept for each type of RPC (FetchFile,
164GetStatus, and so on) sent or received, aggregated over all connections to
165other machines. To display or otherwise access the records, use the Rx
166Monitoring API.
167
168=item B<-allow-dotted-principals>
169
170By default, the RXKAD security layer will disallow access by Kerberos
171principals with a dot in the first component of their name. This is to avoid
172the confusion where principals user/admin and user.admin are both mapped to the
173user.admin PTS entry. Sites whose Kerberos realms don't have these collisions
174between principal names may disable this check by starting the server
175with this option.
176
177=item B<-restricted>
178
179In normal operation, the bos server allows a super user to run any command.
180When the bos server is running in restricted mode (either due to this
181command line flag, or when configured by L<bos_setrestricted(8)>) a number
182of commands are unavailable. Note that this flag persists across reboots.
183Once a server has been placed in restricted mode, it can only be opened up
184by sending the SIGFPE signal.
185
186=item B<-rxmaxmtu> <I<bytes>>
187
188Sets the maximum transmission unit for the RX protocol.
189
190=item B<-rxbind>
191
192Bind the Rx socket to the primary interface only. If not specified, the
193Rx socket will listen on all interfaces.
194
195=item B<-syslog>[=<I<facility>>]>
196
197Specifies that logging output should go to syslog instead of the normal
198log file. B<-syslog>=I<facility> can be used to specify to which facility
199the log message should be sent.
200
201=item B<-transarc-logs>
202
203Use Transarc style logging features. Rename the existing log file
204F</usr/afs/logs/BosLog> to F</usr/afs/logs/BosLog.old> when the bos server is
205restarted. This option is provided for compatibility with older versions.
206
207=item B<-pidfiles>[=<I<path>>]
208
209Create a one-line file containing the process id (pid) for each non-cron
210process started by the BOS Server. This file is removed by the BOS Server when
211the process exits. The optional <I<path>> argument specifies the path where
212the pid files are to be created. The default location is C</usr/afs/local>.
213
214The name of the pid files for C<simple> BOS Server process types are the BOS
215Server instance name followed by C<.pid>.
216
217The name of the pid files for C<fs> and C<dafs> BOS Server process types are
218the BOS Server type name, C<fs> or C<dafs>, followed by the BOS Server core
219name of the process, followed by C<.pid>. The pid file name for the
220C<fileserver> process is C<fs.file.pid>. The pid file name for the C<volserver>
221is C<fs.vol.pid>.
222
223BOS Server instance names are specfied using the B<bos create> command. See
224L<bos_create> for a description of the BOS Server process types and instance
225names.
226
227=item B<-nofork>
228
229Run the BOS Server in the foreground. By default, the BOS Server process will
230fork and detach the stdio, stderr, and stdin streams.
231
232=item B<-help>
233
234Prints the online help for this command. All other valid options are
235ignored.
236
237=back
238
239=head1 EXAMPLES
240
241The following command initializes the BOS Server and logs the names of
242users who issue privileged B<bos> commands.
243
244 % bosserver -log
245
246=head1 PRIVILEGE REQUIRED
247
248The issuer most be logged onto a file server machine as the local
249superuser C<root>.
250
251=head1 SEE ALSO
252
253L<BosConfig(5)>,
254L<BosLog(5)>,
255L<bos(8)>,
256L<bos_create(8)>,
257L<bos_exec(8)>,
258L<bos_getlog(8)>,
259L<bos_getrestart(8)>,
260L<bos_restart(8)>,
261L<bos_setrestricted(8)>,
262L<bos_shutdown(8)>,
263L<bos_start(8)>,
264L<bos_startup(8)>,
265L<bos_status(8)>,
266L<bos_stop(8)>
267
268=head1 COPYRIGHT
269
270IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
271
272This documentation is covered by the IBM Public License Version 1.0. It was
273converted from HTML to POD by software written by Chas Williams and Russ
274Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.