1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id="pts_createuser1">
4 <refentrytitle>pts createuser</refentrytitle>
5 <manvolnum>1</manvolnum>
8 <refname>pts createuser</refname>
9 <refpurpose>Creates a user or machine entry in the Protection Database</refpurpose>
12 <title>Synopsis</title>
13 <para><emphasis role="bold">pts createuser</emphasis> <emphasis role="bold">-name</emphasis> <<emphasis>user name</emphasis>>+ [<emphasis role="bold">-id</emphasis> <<emphasis>user id</emphasis>>+]
14 [<emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis>>] [<emphasis role="bold">-noauth</emphasis>] [<emphasis role="bold">-force</emphasis>] [<emphasis role="bold">-help</emphasis>]</para>
16 <para><emphasis role="bold">pts createu</emphasis> <emphasis role="bold">-na</emphasis> <<emphasis>user name</emphasis>>+ [<emphasis role="bold">-i</emphasis> <<emphasis>user id</emphasis>>+]
17 [<emphasis role="bold">-c</emphasis> <<emphasis>cell name</emphasis>>] [<emphasis role="bold">-no</emphasis>] [<emphasis role="bold">-f</emphasis>] [<emphasis role="bold">-h</emphasis>]</para>
19 <para><emphasis role="bold">pts cu</emphasis> <emphasis role="bold">-na</emphasis> <<emphasis>user name</emphasis>>+ [<emphasis role="bold">-i</emphasis> <<emphasis>user id</emphasis>>+]
20 [<emphasis role="bold">-c</emphasis> <<emphasis>cell name</emphasis>>] [<emphasis role="bold">-no</emphasis>] [<emphasis role="bold">-f</emphasis>] [<emphasis role="bold">-h</emphasis>]</para>
24 <title>Description</title>
25 <para>The <emphasis role="bold">pts createuser</emphasis> command creates an entry in the Protection Database
26 for each user or machine specified by the <emphasis role="bold">-name</emphasis> argument. A user entry
27 name becomes the user's AFS username (the one to provide when
28 authenticating with the AFS Authentication Server). A machine entry's
29 name is the machine's IP address or a wildcard notation that represents a
30 range of consecutive IP addresses (a group of machines on the same
31 network). It is not possible to authenticate as a machine, but a group to
32 which a machine entry belongs can appear on a directory's access control
33 list (ACL), thereby granting the indicated permissions to any user logged
34 on to the machine.</para>
36 <para>AFS user IDs (AFS UIDs) are positive integers and by default the
37 Protection Server assigns an AFS UID that is one greater than the current
38 value of the <computeroutput>max user id</computeroutput> counter in the Protection Database,
39 incrementing the counter by one for each user. To assign a specific AFS
40 UID, use the <emphasis role="bold">-id</emphasis> argument. If any of the specified AFS UIDs is greater
41 than the current value of the <computeroutput>max user id</computeroutput> counter, the counter is reset
42 to that value. It is acceptable to specify an AFS UID smaller than the
43 current value of the counter, but the creation operation fails if an
44 existing user or machine entry already has it. To display or set the value
45 of the <computeroutput>max user id</computeroutput> counter, use the <emphasis role="bold">pts listmax</emphasis> or <emphasis role="bold">pts setmax</emphasis>
46 command, respectively.</para>
48 <para>The issuer of the <emphasis role="bold">pts createuser</emphasis> command is recorded as the entry's
49 creator and the group system:administrators as its owner.</para>
53 <title>Cautions</title>
54 <para>The Protection Server reserves AFS UID 0 (zero) and returns an error if
55 the <emphasis role="bold">-id</emphasis> argument has that value.</para>
59 <title>Options</title>
62 <term><emphasis role="bold">-name</emphasis> <<emphasis>user name</emphasis>>+</term>
64 <para>Specifies either a username for a user entry, or an IP address (complete
65 or wildcarded) for a machine entry:</para>
69 <para>A username can include up to 63 numbers and lowercase letters, but it is
70 best to make it shorter than eight characters, because many application
71 programs cannot handle longer names. Also, it is best not to include shell
72 metacharacters or other punctuation marks. In particular, the colon (<computeroutput>:</computeroutput>)
73 and at-sign (<computeroutput>@</computeroutput>) characters are not acceptable. The period is generally
74 used only in special administrative names, to separate the username and an
75 <emphasis>instance</emphasis>, as in the example <computeroutput>pat.admin</computeroutput>.</para>
79 <para>A machine identifier is its IP address in dotted decimal notation (for
80 example, 192.12.108.240), or a wildcard notation that represents a set of
81 IP addresses (a group of machines on the same network). The following are
82 acceptable wildcard formats. The letters <computeroutput>W</computeroutput>, <computeroutput>X</computeroutput>, <computeroutput>Y</computeroutput> and <computeroutput>Z</computeroutput> each
83 represent an actual number from the range 1 through 255.</para>
87 <para>W.X.Y.Z represents a single machine, for example <computeroutput>192.12.108.240</computeroutput>.</para>
91 <para>W.X.Y.0 matches all machines whose IP addresses start with the first three
92 numbers. For example, <computeroutput>192.12.108.0</computeroutput> matches both <computeroutput>192.12.108.119</computeroutput> and
93 <computeroutput>192.12.108.120</computeroutput>, but does not match <computeroutput>192.12.105.144</computeroutput>.</para>
97 <para>W.X.0.0 matches all machines whose IP addresses start with the first two
98 numbers. For example, the address <computeroutput>192.12.0.0</computeroutput> matches both
99 <computeroutput>192.12.106.23</computeroutput> and <computeroutput>192.12.108.120</computeroutput>, but does not match <computeroutput>192.5.30.95</computeroutput>.</para>
103 <para>W.0.0.0 matches all machines whose IP addresses start with the first
104 number in the specified address. For example, the address <computeroutput>192.0.0.0</computeroutput>
105 matches both <computeroutput>192.5.30.95</computeroutput> and <computeroutput>192.12.108.120</computeroutput>, but does not match
106 <computeroutput>138.255.63.52</computeroutput>.</para>
110 <para>Do not define a machine entry with the name <computeroutput>0.0.0.0</computeroutput> to match every
111 machine. The system:anyuser group is equivalent.</para>
118 <term><emphasis role="bold">-id</emphasis> <<emphasis>user id</emphasis>>+</term>
120 <para>Specifies an AFS UID for each user or machine entry, rather than allowing
121 the Protection Server to assign it. Provide a positive integer.</para>
123 <para>If this argument is used and the <emphasis role="bold">-name</emphasis> argument names multiple new
124 entries, it is best to provide an equivalent number of AFS UIDs. The
125 first UID is assigned to the first entry, the second to the second entry,
126 and so on. If there are fewer UIDs than entries, the Protection Server
127 assigns UIDs to the unmatched entries based on the <computeroutput>max user id</computeroutput>
128 counter. If there are more UIDs than entries, the excess UIDs are
129 ignored. If any of the UIDs is greater than the current value of the <computeroutput>max
130 user id</computeroutput> counter, the counter is reset to that value.</para>
135 <term><emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis>></term>
137 <para>Names the cell in which to run the command. For more details, see
138 <link linkend="pts1">pts(1)</link>.</para>
143 <term><emphasis role="bold">-noauth</emphasis></term>
145 <para>Assigns the unprivileged identity anonymous to the issuer. For more
146 details, see <link linkend="pts1">pts(1)</link>.</para>
151 <term><emphasis role="bold">-force</emphasis></term>
153 <para>Enables the command to continue executing as far as possible when errors
154 or other problems occur, rather than halting execution at the first error.</para>
159 <term><emphasis role="bold">-help</emphasis></term>
161 <para>Prints the online help for this command. All other valid options are
169 <title>Output</title>
170 <para>The command generates the following string to confirm creation of each
174 User &lt;name&gt; has id &lt;id&gt;
179 <title>Examples</title>
180 <para>The following example creates a Protection Database entry for the user
181 <computeroutput>johnson</computeroutput>.</para>
184 % pts createuser -name johnson
187 <para>The following example creates three wildcarded machine entries in the ABC
188 Corporation cell. The three entries encompass all of the machines on the
189 company's networks without including machines on other networks:</para>
192 % pts createuser -name 138.255.0.0 192.12.105.0 192.12.106.0
197 <title>Privilege Required</title>
198 <para>The issuer must belong to the system:administrators group.</para>
202 <title>See Also</title>
203 <para><link linkend="pts1">pts(1)</link>,
204 <link linkend="pts_listmax1">pts_listmax(1)</link>,
205 <link linkend="pts_setmax1">pts_setmax(1)</link></para>
209 <title>Copyright</title>
210 <para>IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.</para>
212 <para>This documentation is covered by the IBM Public License Version 1.0. It was
213 converted from HTML to POD by software written by Chas Williams and Russ
214 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.</para>