Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / bos_setrestricted.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3bos_setrestricted - place a server in restricted mode
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<bos setrestricted> S<<< B<-server> <I<machine name>> >>> S<<< B<-mode> (0 | 1) >>>
11 S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>] [B<-help>]
12
13=for html
14</div>
15
16=head1 DESCRIPTION
17
18The B<bos setrestricted> command places the server in restricted mode. This
19mode increases the security of the bos server by removing access to a
20number of bos commands that are only used whilst configuring a system.
21
22When a server is in restricted mode, access to B<bos_exec>, B<bos uninstall>,
23B<bos install>, B<bos create>, B<bos delete>, B<bos prune>
24is denied, and the use of B<bos getlog> is limited.
25
26=head1 CAUTIONS
27
28Once a server has been placed in restricted mode, it may not be opened up
29again using a remote command. That is, B<bos setrestricted> has no method
30of placing the server in unrestricted mode. Once a server is restricted,
31it can only be opened up again by sending it a SIGFPE, which must be done
32as root on the local machine.
33
34=head1 OPTIONS
35
36=over 4
37
38=item B<-server> <I<machine name>>
39
40Indicates the server machine to restrict.
41
42=item B<-mode> <I<mode>>
43
44Indicates whether to turn restricted mode off or on. Pass a 1 to turn
45restricted mode on, and pass a 0 to turn restricted mode off. The latter
46will only work if the server is already running in unrestricted mode, and
47thus won't do anything immediately, but can be used to change the
48corresponding entry in L<BosConfig(5)>.
49
50=item B<-cell> <I<cell name>>
51
52Names the cell in which to run the command. Do not combine this argument
53with the B<-localauth> flag. For more details, see L<bos(8)>.
54
55=item B<-noauth>
56
57Assigns the unprivileged identity C<anonymous> to the issuer. Do not
58combine this flag with the B<-localauth> flag. For more details, see
59L<bos(8)>.
60
61=item B<-localauth>
62
63Constructs a server ticket using a key from the local
64F</usr/afs/etc/KeyFile> file. The B<bos> command interpreter presents the
65ticket to the BOS Server during mutual authentication. Do not combine this
66flag with the B<-cell> or B<-noauth> options. For more details, see
67L<bos(8)>.
68
69=item B<-help>
70
71Prints the online help for this command. All other valid options are
72ignored.
73
74=back
75
76=head1 PRIVILEGE REQUIRED
77
78The issuer must be listed in the F</usr/afs/etc/UserList> file on the
79machine named by the B<-server> argument, or must be logged in as the
80local superuser C<root> if the B<-localauth> flag is included.
81
82As noted above, this command cannot be run against servers which are
83already in restricted mode.
84
85=head1 SEE ALSO
86
87L<BosConfig(5)>,
88L<bos(8)>,
89L<bos_getrestricted(8)>
90
91=head1 COPYRIGHT
92
93Copyright 2009 Simon Wilkinson <simon@sxw.org.uk>
94
95This documentation is covered by the BSD License as written in the
96doc/LICENSE file. This man page was written by Simon Wilkinson for
97OpenAFS.
98