b5214d2960e545ae39a6a58ceae0557cab9fb004
[openafs.git] / doc / man-pages / pod8 / ptserver.pod
1 =head1 NAME
2
3 ptserver - Initializes the Protection Server
4
5 =head1 SYNOPSIS
6
7 =for html
8 <div class="synopsis">
9
10 B<ptserver> S<<< [B<-database> <I<db path>>] >>> S<<< [B<-p> <I<number of processes>>] >>>
11     [B<-rebuildDB>] [B<-enable_peer_stats>] [B<-enable_process_stats>]
12     [B<-allow-dotted-principal>] [B<-help>]
13
14 =for html
15 </div>
16
17 =head1 DESCRIPTION
18
19 The B<ptserver> command initializes the Protection Server, which must run
20 on every database server machine. In the conventional configuration, its
21 binary file is located in the F</usr/afs/bin> directory on a file server
22 machine.
23
24 The ptserver command is not normally issued at the command shell prompt,
25 but rather placed into a database server machine's
26 F</usr/afs/local/BosConfig> file with the B<bos create> command. If it is
27 ever issued at the command shell prompt, the issuer must be logged onto a
28 file server machine as the local superuser C<root>.
29
30 The Protection Server performs the following tasks:
31
32 =over 4
33
34 =item *
35
36 Maintains the Protection Database, which contains entries for every user
37 and group in the cell. Use the B<pts> commands to administer the database.
38
39 =item *
40
41 Allocates AFS IDs for new user, machine and group entries and maps each ID
42 to the corresponding name.
43
44 =item *
45
46 Generates a current protection subgroup (CPS) at the File Server's
47 request. The CPS lists all groups to which a user or machine belongs.
48
49 =back
50
51 This command does not use the syntax conventions of the AFS command
52 suites. Provide the command name and all option names in full.
53
54 =head1 OPTIONS
55
56 =over 4
57
58 =item B<-database> <I<db path>>
59
60 Specifies the pathname of an alternate directory in which the Protection
61 Database files reside. Provide the complete pathname, ending in the base
62 filename to which the C<.DB0> and C<.DBSYS1> extensions are appended. For
63 example, the appropriate value for the default database files is
64 F</usr/afs/db/prdb>.
65
66 =item B<-p> <I<number of processes>>
67
68 Sets the number of server lightweight processes (LWPs) to run.  Provide a
69 positive integer from the range C<3> to C<16>. The default value is C<3>.
70
71 =item B<-rebuildDB>
72
73 Rebuilds the Protection Database at the beginning of Protection Server
74 initialization. Use this argument only in consultation with AFS
75 Development or Product Support.
76
77 =item B<-enable_peer_stats>
78
79 Activates the collection of Rx statistics and allocates memory for their
80 storage. For each connection with a specific UDP port on another machine,
81 a separate record is kept for each type of RPC (FetchFile, GetStatus, and
82 so on) sent or received. To display or otherwise access the records, use
83 the Rx Monitoring API.
84
85 =item B<-enable_process_stats>
86
87 Activates the collection of Rx statistics and allocates memory for their
88 storage. A separate record is kept for each type of RPC (FetchFile,
89 GetStatus, and so on) sent or received, aggregated over all connections to
90 other machines. To display or otherwise access the records, use the Rx
91 Monitoring API.
92
93 =item B<-allow-dotted-principal>
94
95 By default, the RXKAD security layer will disallow access by Kerberos
96 principals with a dot in the first component of their name. This is to avoid
97 the confusion where principals user/admin and user.admin are both mapped to the
98 user.admin PTS entry. Sites whose Kerberos realms don't have these collisions 
99 between principal names may disable this check by starting the server
100 with this option.
101
102 =item B<-help>
103
104 Prints the online help for this command. All other valid options are
105 ignored.
106
107 =back
108
109 =head1 EXAMPLES
110
111 The following B<bos create> command creates a C<ptserver> process on the
112 machine C<fs3.abc.com>. The command appears here on multiple lines only
113 for legibility.
114
115    % bos create -server fs3.abc.com -instance ptserver \
116                 -type simple -cmd /usr/afs/bin/ptserver
117
118 =head1 PRIVILEGE REQUIRED
119
120 The issuer must be logged in as the superuser C<root> on a file server
121 machine to issue the command at a command shell prompt. It is conventional
122 instead to create and start the process by issuing the B<bos create>
123 command.
124
125 =head1 SEE ALSO
126
127 L<BosConfig(5)>,
128 L<prdb.DB0(5)>,
129 L<bos_create(8)>,
130 L<bos_getlog(8)>,
131 L<pts(1)>
132
133 =head1 COPYRIGHT
134
135 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
136
137 This documentation is covered by the IBM Public License Version 1.0.  It was
138 converted from HTML to POD by software written by Chas Williams and Russ
139 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.