document login characters, minor cleanups
[unix-history] / usr / src / share / man / man8 / adduser.8
CommitLineData
0de23b92
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
902f6982 3.\"
0de23b92
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
b3e3a15e 16.\" @(#)adduser.8 6.6 (Berkeley) %G%
902f6982
KM
17.\"
18.TH ADDUSER 8 ""
19.UC 4
20.SH NAME
21adduser \- procedure for adding new users
22.SH DESCRIPTION
23A new user must choose a login name, which must not already appear in
b3e3a15e
KB
24.IR /etc/passwd or
25.IR /usr/lib/aliases .
26It must also not begin with the hyphen (``-'') character.
27It is strongly recommended that it be all lower-case, and not contain
28the dot (``.'') character, as that tends to confuse mailers.
29An account can be added by editing a line into the passwd file; this
30must be done with the password file locked e.g. by using
0de23b92
KB
31.IR chpass (1)
32or
902f6982
KM
33.IR vipw (8).
34.PP
35A new user is given a group and user id.
b3e3a15e
KB
36Login's and user id's should be unique across the system, and often across
37a group of systems, since they are used to control file access.
0de23b92 38Typically, users working on similar projects will be put in the same groups.
b3e3a15e
KB
39At the University of California, Berkeley, we have groups for system staff,
40faculty, graduate students, and special groups for large projects.
902f6982 41.PP
0de23b92 42A skeletal account for a new user \*(lqernie\*(rq might look like:
902f6982 43.IP
b3e3a15e 44ernie::25:30::0:0:Ernie Kovacs,508 Evans Hall,x7925,642-8202:/a/users/ernie:/bin/csh
902f6982 45.PP
0de23b92
KB
46For a description of each of these fields, see
47.IR passwd (5).
902f6982
KM
48.PP
49It is useful to give new users some help in getting started, supplying
50them with a few skeletal files such as
51.I \&.profile
52if they use \*(lq/bin/sh\*(rq, or
53.I \&.cshrc
54and
55.I \&.login
56if they use \*(lq/bin/csh\*(rq.
57The directory
58\*(lq/usr/skel\*(rq contains skeletal definitions of such files.
59New users should be given copies of these files which, for instance,
0de23b92 60use
902f6982
KM
61.IR tset (1)
62automatically at each login.
63.SH FILES
64.ta 2i
0de23b92 65/etc/master.passwd user database
902f6982
KM
66.br
67/usr/skel skeletal login directory
68.SH SEE ALSO
0de23b92 69chpass(1), finger(1), passwd(1), aliases(5), passwd(5), mkpasswd(8), vipw(8)
902f6982 70.SH BUGS
0de23b92 71User information should (and eventually will) be stored elsewhere.