BSD 4_2 development
[unix-history] / usr / man / man5 / passwd.5
CommitLineData
11a514e8
C
1.TH PASSWD 5 "15 January 1983"
2.SH NAME
3passwd \- password file
4.SH DESCRIPTION
5.I Passwd
6contains for each user the
7following information:
8.HP 10
9name (login name, contains no upper case)
10.br
11.ns
12.HP 10
13encrypted password
14.br
15.ns
16.HP 10
17numerical user ID
18.br
19.ns
20.HP 10
21numerical group ID
22.br
23.ns
24.HP 10
25user's real name, office, extension, home phone.
26.br
27.ns
28.HP 10
29initial working directory
30.br
31.ns
32.HP 10
33program to use as Shell
34.PP
35The name may contain `&', meaning insert the login name.
36This information is set by the
37.IR chfn (1)
38command and used by the
39.IR finger (1)
40command.
41.PP
42This is an ASCII file. Each field within each user's entry
43is separated from the next by a colon.
44Each user is separated from the next by a new-line.
45If the password field is null, no password is demanded;
46if the Shell field is null, then
47.I /bin/sh
48is used.
49.PP
50This file resides in directory /etc.
51Because of the encrypted
52passwords, it can and does have general read
53permission and can be used, for example,
54to map numerical user ID's to names.
55.PP
56Appropriate precautions must be taken to lock the file against changes
57if it is to be edited with a text editor;
58.IR vipw (8)
59does the necessary locking.
60.SH FILES
61/etc/passwd
62.SH "SEE ALSO"
63getpwent(3), login(1), crypt(3), passwd(1), group(5), chfn(1), finger(1),
64vipw(8), adduser(8)
65.SH BUGS
66A binary indexed file format should be available for fast access.
67.PP
68User information (name, office, etc.) should be stored elsewhere.