3 pts_createuser - Creates a user or machine entry in the Protection Database
10 B<pts createuser> S<<< B<-name> <I<user name>>+ >>> S<<< [B<-id> <I<user id>>+] >>>
11 S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-force>] [B<-help>]
13 B<pts createu> S<<< B<-na> <I<user name>>+ >>> S<<< [B<-i> <I<user id>>+] >>>
14 S<<< [B<-c> <I<cell name>>] >>> [B<-no>] [B<-f>] [B<-h>]
16 B<pts cu> S<<< B<-na> <I<user name>>+ >>> S<<< [B<-i> <I<user id>>+] >>>
17 S<<< [B<-c> <I<cell name>>] >>> [B<-no>] [B<-f>] [B<-h>]
24 The B<pts createuser> command creates an entry in the Protection Database
25 for each user or machine specified by the B<-name> argument. A user entry
26 name becomes the user's AFS username (the one to provide when
27 authenticating with the AFS Authentication Server). A machine entry's
28 name is the machine's IP address or a wildcard notation that represents a
29 range of consecutive IP addresses (a group of machines on the same
30 network). It is not possible to authenticate as a machine, but a group to
31 which a machine entry belongs can appear on a directory's access control
32 list (ACL), thereby granting the indicated permissions to any user logged
35 AFS user IDs (AFS UIDs) are positive integers and by default the
36 Protection Server assigns an AFS UID that is one greater than the current
37 value of the C<max user id> counter in the Protection Database,
38 incrementing the counter by one for each user. To assign a specific AFS
39 UID, use the B<-id> argument. If any of the specified AFS UIDs is greater
40 than the current value of the C<max user id> counter, the counter is reset
41 to that value. It is acceptable to specify an AFS UID smaller than the
42 current value of the counter, but the creation operation fails if an
43 existing user or machine entry already has it. To display or set the value
44 of the C<max user id> counter, use the B<pts listmax> or B<pts setmax>
45 command, respectively.
47 The issuer of the B<pts createuser> command is recorded as the entry's
48 creator and the group system:administrators as its owner.
52 The Protection Server reserves AFS UID 0 (zero) and returns an error if
53 the B<-id> argument has that value.
59 =item B<-name> <I<user name>>+
61 Specifies either a username for a user entry, or an IP address (complete
62 or wildcarded) for a machine entry:
68 A username can include up to 63 numbers and lowercase letters, but it is
69 best to make it shorter than eight characters, because many application
70 programs cannot handle longer names. Also, it is best not to include shell
71 metacharacters or other punctuation marks. In particular, the colon (C<:>)
72 and at-sign (C<@>) characters are not acceptable. The period is generally
73 used only in special administrative names, to separate the username and an
74 I<instance>, as in the example C<pat.admin>.
78 A machine identifier is its IP address in dotted decimal notation (for
79 example, 192.12.108.240), or a wildcard notation that represents a set of
80 IP addresses (a group of machines on the same network). The following are
81 acceptable wildcard formats. The letters C<W>, C<X>, C<Y> and C<Z> each
82 represent an actual number from the range 1 through 255.
88 W.X.Y.Z represents a single machine, for example C<192.12.108.240>.
92 W.X.Y.0 matches all machines whose IP addresses start with the first three
93 numbers. For example, C<192.12.108.0> matches both C<192.12.108.119> and
94 C<192.12.108.120>, but does not match C<192.12.105.144>.
98 W.X.0.0 matches all machines whose IP addresses start with the first two
99 numbers. For example, the address C<192.12.0.0> matches both
100 C<192.12.106.23> and C<192.12.108.120>, but does not match C<192.5.30.95>.
104 W.0.0.0 matches all machines whose IP addresses start with the first
105 number in the specified address. For example, the address C<192.0.0.0>
106 matches both C<192.5.30.95> and C<192.12.108.120>, but does not match
111 Do not define a machine entry with the name C<0.0.0.0> to match every
112 machine. The system:anyuser group is equivalent.
116 =item B<-id> <I<user id>>+
118 Specifies an AFS UID for each user or machine entry, rather than allowing
119 the Protection Server to assign it. Provide a positive integer.
121 If this argument is used and the B<-name> argument names multiple new
122 entries, it is best to provide an equivalent number of AFS UIDs. The
123 first UID is assigned to the first entry, the second to the second entry,
124 and so on. If there are fewer UIDs than entries, the Protection Server
125 assigns UIDs to the unmatched entries based on the C<max user id>
126 counter. If there are more UIDs than entries, the excess UIDs are
127 ignored. If any of the UIDs is greater than the current value of the C<max
128 user id> counter, the counter is reset to that value.
130 =item B<-cell> <I<cell name>>
132 Names the cell in which to run the command. For more details, see
137 Assigns the unprivileged identity anonymous to the issuer. For more
138 details, see L<pts(1)>.
142 Enables the command to continue executing as far as possible when errors
143 or other problems occur, rather than halting execution at the first error.
147 Prints the online help for this command. All other valid options are
154 The command generates the following string to confirm creation of each
157 User <name> has id <id>
161 The following example creates a Protection Database entry for the user
164 % pts createuser -name johnson
166 The following example creates three wildcarded machine entries in the ABC
167 Corporation cell. The three entries encompass all of the machines on the
168 company's networks without including machines on other networks:
170 % pts createuser -name 138.255.0.0 192.12.105.0 192.12.106.0
172 =head1 PRIVILEGE REQUIRED
174 The issuer must belong to the system:administrators group.
184 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
186 This documentation is covered by the IBM Public License Version 1.0. It was
187 converted from HTML to POD by software written by Chas Williams and Russ
188 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.