Commit | Line | Data |
---|---|---|
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 | |
21 | adduser \- procedure for adding new users | |
22 | .SH DESCRIPTION | |
23 | A 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 . | |
26 | It must also not begin with the hyphen (``-'') character. | |
27 | It is strongly recommended that it be all lower-case, and not contain | |
28 | the dot (``.'') character, as that tends to confuse mailers. | |
29 | An account can be added by editing a line into the passwd file; this | |
30 | must be done with the password file locked e.g. by using | |
0de23b92 KB |
31 | .IR chpass (1) |
32 | or | |
902f6982 KM |
33 | .IR vipw (8). |
34 | .PP | |
35 | A new user is given a group and user id. | |
b3e3a15e KB |
36 | Login's and user id's should be unique across the system, and often across |
37 | a group of systems, since they are used to control file access. | |
0de23b92 | 38 | Typically, users working on similar projects will be put in the same groups. |
b3e3a15e KB |
39 | At the University of California, Berkeley, we have groups for system staff, |
40 | faculty, graduate students, and special groups for large projects. | |
902f6982 | 41 | .PP |
0de23b92 | 42 | A skeletal account for a new user \*(lqernie\*(rq might look like: |
902f6982 | 43 | .IP |
b3e3a15e | 44 | ernie::25:30::0:0:Ernie Kovacs,508 Evans Hall,x7925,642-8202:/a/users/ernie:/bin/csh |
902f6982 | 45 | .PP |
0de23b92 KB |
46 | For a description of each of these fields, see |
47 | .IR passwd (5). | |
902f6982 KM |
48 | .PP |
49 | It is useful to give new users some help in getting started, supplying | |
50 | them with a few skeletal files such as | |
51 | .I \&.profile | |
52 | if they use \*(lq/bin/sh\*(rq, or | |
53 | .I \&.cshrc | |
54 | and | |
55 | .I \&.login | |
56 | if they use \*(lq/bin/csh\*(rq. | |
57 | The directory | |
58 | \*(lq/usr/skel\*(rq contains skeletal definitions of such files. | |
59 | New users should be given copies of these files which, for instance, | |
0de23b92 | 60 | use |
902f6982 KM |
61 | .IR tset (1) |
62 | automatically 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 | 69 | chpass(1), finger(1), passwd(1), aliases(5), passwd(5), mkpasswd(8), vipw(8) |
902f6982 | 70 | .SH BUGS |
0de23b92 | 71 | User information should (and eventually will) be stored elsewhere. |