BSD 4_2 development
[unix-history] / usr / man / man1 / chfn.1
CommitLineData
5d0d5e2f
C
1.TH CHFN 1 "17 March 1982 deprecated"
2.UC 4
3.SH NAME
4chfn \- change finger entry
5.SH SYNOPSIS
6.B chfn
7[loginname]
8.SH DESCRIPTION
9.I Chfn
10is used to change information about users. This information is used
11by the finger program, among others.
12It consists of the user's
13"real life" name, office room number, office phone number, and home
14phone number.
15.I Chfn
16prompts the user for each field.
17Included in the prompt is a default value,
18which is enclosed between brackets.
19The default value is accepted simply by typing <return>.
20To enter a blank field,
21type the word 'none'.
22Below is a sample run:
23.IP
24.B "Name [Biff Studsworth II]:"
25.br
26.B "Room number (Exs: 597E or 197C) []:"
27521E
28.br
29.B "Office Phone (Ex: 1632) []:"
301863
31.br
32.B "Home Phone (Ex: 987532) [5771546]:"
33none
34.sp
35.PP
36.I Chfn
37allows phone numbers to be entered with or without hyphens.
38Because
39.I finger
40only knows about UCB extensions,
41.I chfn
42will insist upon a four digit number (after the hyphens are removed)
43for office phone numbers.
44Also, room numbers must be in Evans or Cory;
45again, this is because of
46.IR finger .
47.PP
48It is a good idea to run finger after running
49.I chfn
50to make sure everything is the way you want it.
51.PP
52The optional argument
53.B loginname
54is used to change another person's finger information.
55This can only be done by the super-user.
56.SH FILES
57/etc/passwd, /etc/ptmp
58.SH SEE\ ALSO
59finger(1), passwd(5)
60.SH BUGS
61The encoding of the office and extension information is installation dependent.
62.PP
63For historical reasons, the user's name, etc are stored in the passwd file.
64This is a bad place to store the information.
65Rumors are that a data base is being developed to store this information,
66but don't hold your breath.
67.PP
68Because two users may try to write the passwd file at once, a synchronization
69method was developed.
70On rare occasions, a message that the password file
71is "busy" will be printed.
72In this case,
73.I chfn
74sleeps for a while and then tries to write to the passwd file again.