]> andersk Git - moira.git/blame - man/addusr.1
Add -n flag to suppress use of FixCase(), since it's heuristics aren't
[moira.git] / man / addusr.1
CommitLineData
967b62f5 1.TH ADDUSR 1 "12 Jan 1996" "Project Athena"
93d0b3bf 2\" RCSID: $Header$
3.SH NAME
4addusr \- add and/or register users in Moira
5.SH SYNOPSIS
00988715 6.B addusr [-cCdfhrRsSv6]
93d0b3bf 7.SH DESCRIPTION
8.I Addusr
9is a tool for adding users in bulk to the moira database and
10registering them for accounts. It reads the users from a file (or
11stdin) rather than the menu-oriented regular moira client.
12
13The users are entered in one of two formats, depending on whether or
14not they will be registered. When users are only being added to the
15database, the format is:
16.nf
17 lastname, firstname middlename idnumber
18.fi
19The lastname may have spaces in it, as it will continue up until the
20first comma on the line. The firstname also may have spaces, as it
21will take up everything but the last two tokens on the line. If only
223 tokens are on the line, the middlename will be assumed to be the
23empty string. The middlename cannot have spaces in it. The idnumber
24also cannot have spaces, although it may have hyphens in it. The
25capitalization of the names is not important as it will be corrected
26before entering into the database. If the operation specified for
27.B addusr
38018b28 28includes registering users, then there is one additional token on
93d0b3bf 29the end of the line:
30.nf
38018b28 31 lastname, firstname middlename idnumber loginname
93d0b3bf 32.fi
93d0b3bf 33.SH OPTIONS
34.IP \fB-file\ \fIfilename\ \fRor\ \fB-f\ \fIfilename\fR:
35This specifies the file that will be read for the list of users to
36operate on. If not specifed, standard input will be used. The file
37format is described above.
38.IP \fB-class\ \fIclass\ \fRor\ \fB-c\ \fIclass\fR:
39This specifies the account class that will be used for all users added
40in this invocation. If not specified, \fITEMP\fR will be used.
41.IP \fB-comment\ \fI"comment"\ \fRor\ \fB-C\ \fI"comment"\fR:
42This specifies the comment that will be stored for all users added
43in this invocation. If not specified, the comment field will be left
44blank. Note that the double-quotes are not required by \fBaddusr\fR,
45but will be parsed out by the shell and are only needed to specify
46comments with spaces in them.
47.IP \fB-status\ \fIstatus\ \fRor\ \fB-s\ \fIstatus\fR:
48This specifies the account status that will be used for all users added
49in this invocation. If not specified, \fI0 (registerable)\fR will be used.
50.IP \fB-shell\ \fIshell\ \fRor\ \fB-h\ \fIshell\fR:
51This specifies the login shell that will be stored for all users added
967b62f5 52in this invocation. If not specified, a default will be used. At MIT
53Athena the default is \fI/bin/athena/tcsh\fR, elsewhere it is likely to be
54\fI/bin/csh\fR.
93d0b3bf 55.IP \fB-register\ \fRor\ \fB-R\fR:
56This instructs \fBaddusr\fR to both add the users to the database and
38018b28 57then to immediately register them. The users will be left
58"half-registered", meaning that they have everything but a Kerberos
59principal.
93d0b3bf 60.IP \fB-reg_only\ \fRor\ \fB-r\fR:
38018b28 61This instructs \fBaddusr\fR to (half-) register the users without
62attempting to add them to the database. They must already exist in the
63database.
93d0b3bf 64.IP \fB-verbose\ \fRor\ \fB-v\fR:
65This causes \fBaddusr\fR to print messages about each operation as it
66performs it.
67.IP \fB-nodupcheck\ \fRor\ \fB-d\fR:
68Do not attempt to check the database for duplicates before adding
69users. Normally \fBaddusr\fR will check the database for users with
70the same name. If it finds any who match in both name and ID number,
71the user will not be added. If it finds a name match with a different
72ID number, it will print a warning and add the user anyway.
bbf9216c 73.IP \fB-database\ \fIhost:port\ \fRor\ \fB-db\ \fIhost:port\fR:
93d0b3bf 74Use the specified host and port to contact the Moira server instead of
75the default server. Both may be symbolic names or numbers. If the
76port is left off, the default Moira server port will be assumed. The
77server chosen will be the one specified on the command line, specified
78in the MOIRASERVER environment variable, the hesiod "moira" sloc entry,
79or the compiled in default, in that order or preference.
00988715 80.IP \fB-secure\ \fRor\ \fB-6\fR:
81This specifies that users added in this invocation will need a secure
82"Account Coupon" containing additional verification information beyond
83name and ID number to be allowed to register.
93d0b3bf 84
85.SH AUTHOR
86Mark Rosenstein
87.SH SEE ALSO
88moira(1), userreg(1)
This page took 0.147935 seconds and 5 git commands to generate.