Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / fs_setcrypt.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fs_setcrypt - Enables of disables the encryption of AFS file transfers
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fs setcrypt> S<<< [B<-crypt>] <I<on/off>> >>> [B<-help>]
11
12=for html
13</div>
14
15=head1 DESCRIPTION
16
17The B<fs setcrypt> command sets the status of network traffic encryption
18for file traffic in the AFS client. This encryption applies to file
19traffic going to and coming from the AFS File Server for users with valid
20tokens. This command does not control the encryption used for
21authentication, which uses Kerberos 5 or klog/kaserver. The complement of
22this command is B<fs getcrypt>, which shows the status of encryption on
23the client.
24
25The default encryption status is enabled on Windows. It is disabled on all
26non-Windows clients by default. You may enable encryption by default on
27non-Windows platforms by executing B<fs setcrypt -crypt on> immediately
28after the client daemon starts. For example, on Linux, you can do this
29within the SysV init script, or with systemd's ExecStartPost parameter.
30
31This is a global setting and applies to all subsequent connections to an
32AFS File Server from this Cache Manager. There is no way to enable or
33disable encryption for specific connections.
34
35=head1 CAUTIONS
36
37AFS uses an encryption scheme called fcrypt, based on but slightly weaker
38than DES, and there is currently no way to specify a different encryption
39mechanism. Because fcrypt and DES are obsolete, the user must decide how
40much to trust the encryption. Consider using a Virtual Private Network at
41the IP level if better encryption is needed.
42
43Encrypting file traffic requires a token. Unauthenticated connections or
44connections authorized via IP-based ACLs will not be encrypted even when
45encryption is turned on.
46
47=head1 OPTIONS
48
49=over 4
50
51=item B<-crypt> <I<on/off>>
52
53This is the only option to B<fs setcrypt>. The B<-crypt> option takes
54either C<on> or C<off>. C<on> enables encryption. C<off> disables
55encryption. Since this is the only option, the C<-crypt> flag may be
56omitted.
57
58C<0> and C<1> or C<true> and C<false> are not supported as replacements
59for C<on> and C<off>.
60
61=item B<-help>
62
63Prints the online help for this command. All other valid options are
64ignored.
65
66=back
67
68=head1 OUTPUT
69
70This command produces no output other than error messages.
71
72=head1 EXAMPLES
73
74There are only four ways to invoke B<fs setcrypt>. Either of:
75
76 % fs setcrypt -crypt on
77 % fs setcrypt on
78
79will enable encryption for authenticated connections and:
80
81 % fs setcrypt -crypt off
82 % fs setcrypt off
83
84will disable encryption.
85
86=head1 PRIVILEGE REQUIRED
87
88The issuer must be logged in as the local superuser root.
89
90=head1 SEE ALSO
91
92L<fs_getcrypt(1)>
93
94The description of the fcrypt encryption mechanism at
95L<http://surfvi.com/~ota/fcrypt-paper.txt>.
96
97=head1 COPYRIGHT
98
99Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
100
101This documentation is covered by the BSD License as written in the
102doc/LICENSE file. This man page was written by Jason Edgecombe for
103OpenAFS.