Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / fs_exportafs.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fs_exportafs - Configures export of AFS to clients of other file systems
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fs exportafs> S<<< B<-type> <I<exporter name>> >>>
11 S<<< [B<-start> <I<start/stop translator (on | off)>>] >>>
12 S<<< [B<-convert> <I<convert from afs to unix mode (on | off)>>] >>>
13 S<<< [B<-uidcheck> <I<run on strict 'uid check' mode (on | off)>>] >>>
14 S<<< [B<-submounts> <I<allow nfs mounts to subdirs of /afs/.. (on | off)>>] >>>
15 S<<< [B<-clipags> <I<use client-assigned PAGs (on | off)>>] >>>
16 S<<< [B<-pagcb> <I<callback clients to get creds (on | off)>>] >>>
17 [B<-help>]
18
19B<fs exp> S<<< B<-t> <I<exporter name>> >>>
20 S<<< [B<-st> <I<start/stop translator (on | off)>>] >>>
21 S<<< [B<-co> <I<convert from afs to unix mode (on | off)>>] >>>
22 S<<< [B<-u> <I<run on strict 'uid check' mode (on | off)>>] >>>
23 S<<< [B<-su> <I<allow nfs mounts to subdirs of /afs/.. (on | off)>>] >>>
24 S<<< [B<-cl> <I<use client-assigned PAGs (on | off)>>] >>>
25 S<<< [B<-p> <I<callback clients to get creds (on | off)>>] >>>
26 [B<-h>]
27
28=for html
29</div>
30
31=head1 DESCRIPTION
32
33The B<fs exportafs> command sets (if the B<-start> argument is provided)
34or reports (if it is omitted) whether the machine can reexport the AFS
35filespace to clients of a non-AFS file system. To control certain features
36of the translation protocol, use the following arguments:
37
38=over 4
39
40=item *
41
42To control whether the UNIX group and other mode bits on an AFS file or
43directory are set to match the owner mode bits when it is exported to the
44non-AFS file system, use the B<-convert> argument.
45
46=item *
47
48To control whether tokens can be placed in a credential structure
49identified by a UID that differs from the local UID of the entity that is
50placing the tokens in the structure, use the B<-uidcheck> argument. The
51most common use is to control whether issuers of the B<knfs> command can
52specify a value for its B<-id> argument that does not match their local
53UID on the NFS/AFS translator machine.
54
55=item *
56
57To control whether users can create mounts in the non-AFS filespace to an
58AFS directory other than F</afs>, use the B<-submounts> argument.
59
60=back
61
62=head1 OPTIONS
63
64=over 4
65
66=item B<-type> <I<exporter name>>
67
68Names the alternate file system to which to reexport the AFS
69filespace. The only acceptable value is C<nfs>, in lowercase letters only.
70
71=item B<-start> <on | off>
72
73Enables the local machine to reexport the AFS filespace if the value is
74C<on>, or disables it if the value is C<off>. Omit this argument to report
75the current setting for all of the configurable parameters.
76
77=item B<-convert> <on | off>
78
79Controls the setting of the UNIX group and other mode bits on AFS files
80and directories exported to the non-AFS file system. If the value is
81C<on>, they are set to match the B<owner> mode bits. If the value is
82C<off>, the bits are not changed. If this argument is omitted, the default
83value is C<on>.
84
85=item B<-uidcheck> <on | off>
86
87Controls whether tokens can be placed in a credential structure identified
88by a UID that differs from the local UID of the entity that is placing the
89tokens in the structure.
90
91=over 4
92
93=item *
94
95If the value is on, the UID that identifies the credential structure must
96match the local UID.
97
98With respect to the B<knfs> command, this value means that the value of
99B<-id> argument must match the issuer's local UID on the translator
100machine. In practice, this setting makes it pointless to include the
101B<-id> argument to the B<knfs> command, because the only acceptable value
102(the issuer's local UID) is already used when the B<-id> argument is
103omitted.
104
105Enabling UID checking also makes it impossible to issue the B<klog> and
106B<pagsh> commands on a client machine of the non-AFS file system even
107though it is a system type supported by AFS. For an explanation, see
108L<klog(1)>.
109
110=item *
111
112If the value is off (the default), tokens can be assigned to a local UID
113in the non-AFS file system that does not match the local UID of the entity
114assigning the tokens.
115
116With respect to the B<knfs> command, it means that the issuer can use the
117B<-id> argument to assign tokens to a local UID on the NFS client machine
118that does not match his or her local UID on the translator machine. (An
119example is assigning tokens to the MFS client machine's local superuser
120C<root>.) This setting allows more than one issuer of the B<knfs> command
121to make tokens available to the same user on the NFS client machine. Each
122time a different user issues the B<knfs> command with the same value for
123the B<-id> argument, that user's tokens overwrite the existing ones. This
124can result in unpredictable access for the user on the NFS client machine.
125
126=back
127
128=item B<-submounts> <on | off>
129
130Controls whether a user of the non-AFS filesystem can mount any directory
131in the AFS filespace other than the top-level F</afs> directory. If the
132value is C<on>, such submounts are allowed. If the value is C<off>, only
133mounts of the F</afs> directory are allowed. If this argument is omitted,
134the default value is C<off>.
135
136=item B<-clipags> <on | off>
137
138Turning on this option enables support for "client-assigned PAGs". With
139client-assigned PAGs, an NFS client can manage its own AFS pags, and inform the
140NFS translator machine what PAG we are using, instead of the NFS translator
141machine keeping track of PAGs. An NFS client machine can do this if it has the
142"afspag" kernel module loaded, which tracks PAGs but otherwise does not
143implement AFS functionality, and forwards all requests to the NFS translator
144machine.
145
146You should only turn on this option if you are making use of client-assigned
147PAGs, and you trust the NFS client machines making use of the translator. This
148option is off by default.
149
150=item B<-pagcb> <on | off>
151
152Turning on this option means that the NFS translator machine will contact new
153NFS clients in order to obtain their credentials and sysnames. This option can
154be useful so that client credentials are not lost if the translator machine is
155rebooted, or if an NFS client is "moved" to using a different translator. This
156functionality will only work with NFS clients that are also running the
157"afspag" kernel module.
158
159Using this option with NFS clients not running with the "afspag" kernel module
160would cause long timeouts when the translator machine attempts to contact the
161client to obtain its credentials and sysname list. This option is off by
162default.
163
164=item B<-help>
165
166Prints the online help for this command. All other valid options are
167ignored.
168
169=back
170
171=head1 OUTPUT
172
173If the machine is not even configured as a server of the non-AFS file
174system, the following message appears:
175
176 Sorry, the <file_system>-exporter type is currently not supported on
177 this AFS client
178
179If the machine is configured as a server of the non-AFS file system but is
180not currently enabled to reexport AFS to it (because the B<-start>
181argument to this command is not set to C<on>), the message is as follows:
182
183 '<file_system>' translator is disabled
184
185If the machine is enabled to reexport AFS, the following message precedes
186messages that report the settings of the other parameters.
187
188 '<file_system>' translator is enabled with the following options:
189
190The following messages indicate that the B<-convert> argument is set to
191C<on> or C<off> respectively:
192
193 Running in convert owner mode bits to world/other mode
194 Running in strict unix mode
195
196The following messages indicate that the B<-uidcheck> argument is set to
197C<on> or C<off> respectively:
198
199 Running in strict 'passwd sync' mode
200 Running in no 'passwd sync' mode
201
202The following messages indicate that the B<-submounts> argument is set to
203C<on> or C<off> respectively:
204
205 Allow mounts of /afs/.. subdirs
206 Only mounts to /afs allowed
207
208=head1 EXAMPLES
209
210The following example shows that the local machine can export AFS to NFS
211client machines.
212
213 % fs exportafs nfs
214 'nfs' translator is enabled with the following options:
215 Running in convert owner mode bits to world/other mode
216 Running in no 'passwd sync' mode
217 Only mounts to /afs allowed
218
219The following example enables the machine as an NFS server and converts
220the UNIX group and other mode bits on exported AFS directories and files
221to match the UNIX owner mode bits.
222
223 % fs exportafs -type nfs -start on -convert on
224
225The following example disables the machine from reexporting AFS to NFS
226client machines:
227
228 % fs exportafs -type nfs -start off
229
230=head1 PRIVILEGE REQUIRED
231
232The issuer must be logged in as the local superuser root.
233
234=head1 SEE ALSO
235
236L<klog(1)>,
237L<knfs(1)>
238
239=head1 COPYRIGHT
240
241IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
242
243This documentation is covered by the IBM Public License Version 1.0. It was
244converted from HTML to POD by software written by Chas Williams and Russ
245Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.