PTS_CREATEUSER(1) | AFS Command Reference | PTS_CREATEUSER(1) |
pts_createuser - Creates a user or machine entry in the Protection Database
pts createuser
-name <user name>+
[-id <user id>+]
[-cell <cell name>] [-noauth]
[-localauth] [-force]
[-help] [-auth] [-encrypt]
[-config <config directory>]
pts createu
-na <user name>+
[-i <user id>+]
[-c <cell name>] [-no] [-l]
[-f] [-h]
[-a] [-e]
[-co <config directory>]
pts cu -na <user name>+
[-i <user id>+]
[-c <cell name>] [-no] [-l]
[-f] [-h]
[-a] [-e]
[-co <config directory>]
The pts createuser command creates an entry in the Protection Database for each user or machine specified by the -name argument. A user entry name becomes the user's AFS username (the one to provide when authenticating with the AFS Authentication Server). A machine entry's name is the machine's IP address or a wildcard notation that represents a range of consecutive IP addresses (a group of machines on the same network). It is not possible to authenticate as a machine, but a group to which a machine entry belongs can appear on a directory's access control list (ACL), thereby granting the indicated permissions to any user logged on to the machine.
AFS user IDs (AFS UIDs) are positive integers and by default the Protection Server assigns an AFS UID that is one greater than the current value of the "max user id" counter in the Protection Database, incrementing the counter by one for each user. To assign a specific AFS UID, use the -id argument. If any of the specified AFS UIDs is greater than the current value of the "max user id" counter, the counter is reset to that value. It is acceptable to specify an AFS UID smaller than the current value of the counter, but the creation operation fails if an existing user or machine entry already has it. To display or set the value of the "max user id" counter, use the pts listmax or pts setmax command, respectively.
The issuer of the pts createuser command is recorded as the entry's creator and the group system:administrators as its owner.
The Protection Server reserves several AFS UIDs, including 0 (zero) and 32766 (anonymous) for internal use, and returns an error if the -id argument has a reserved value.
Do not define a machine entry with the name 0.0.0.0 to match every machine. The system:anyuser group is equivalent.
If this argument is used and the -name argument names multiple new entries, it is best to provide an equivalent number of AFS UIDs. The first UID is assigned to the first entry, the second to the second entry, and so on. If there are fewer UIDs than entries, the Protection Server assigns UIDs to the unmatched entries based on the "max user id" counter. If there are more UIDs than entries, the excess UIDs are ignored. If any of the UIDs is greater than the current value of the "max user id" counter, the counter is reset to that value.
The command generates the following string to confirm creation of each user:
User <name> has id <id>
The following example creates a Protection Database entry for the user "johnson".
% pts createuser -name johnson
The following example creates three wildcarded machine entries in the Example Corporation cell. The three entries encompass all of the machines on the company's networks without including machines on other networks:
% pts createuser -name 138.255.0.0 192.12.105.0 192.12.106.0
The issuer must belong to the system:administrators group.
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
2021-01-14 | OpenAFS |