chfn(1)
NAME
chfn − change system finger entry
SYNTAX
chfn [loginname]
DESCRIPTION
The chfn command is used to change information about users. This information is used by the finger program, among others. It consists of the user’s real name, office room number, office phone number, and home phone number. The chfn command prompts the user for each field. Included in the prompt is a default value, which is enclosed between brackets. The default value is accepted simply by typing <return>. To enter a blank field, type the word ’none’. This is an example:
Name [Biff Studsworth II]:
Office number (no colons) [ABC-1/K0]:
DEF-2/K1
Office Phone (Exs: 1234 or 123-4567) []:
1863
Home Phone (Ex: 123-4567) [5771546]:
none
The chfn command allows phone numbers to be entered with or without hyphens. Office entries cannot contain colons or new lines.
It is a good idea to run finger after running chfn to make sure everything is the way you want it.
The optional argument loginname is used to change another person’s finger information. This can only be done by the superuser.
RESTRICTIONS
The encoding of the office and extension information is installation dependent.
Because two users may try to write the passwd file at once, a synchronization method was developed. On rare occasions, a message that the password file is "busy" will be printed. In this case, chfn sleeps for a while and then tries to write to the passwd file again.
FILES
/etc/passwd, /etc/ptmp