1CHFN(1)                          User Commands                         CHFN(1)
2
3
4

NAME

6       chfn - change your finger information
7

SYNOPSIS

9       chfn  [-f full-name] [-o office] [-p office-phone] [-h home-phone] [-u]
10       [-v] [username]
11

DESCRIPTION

13       chfn is used to change your finger information.   This  information  is
14       stored in the /etc/passwd file, and is displayed by the finger program.
15       The Linux finger command will display four pieces of  information  that
16       can  be  changed by chfn: your real name, your work room and phone, and
17       your home phone.
18
19       Any of the four pieces of information can be specified on  the  command
20       line.   If  no  information  is  given on the command line, chfn enters
21       interactive mode.
22
23       In interactive mode, chfn will prompt for each field.  At a prompt, you
24       can  enter the new information, or just press return to leave the field
25       unchanged.  Enter the keyword "none" to make the field blank.
26
27       chfn supports non-local entries (kerberos, LDAP, etc.) if  linked  with
28       libuser,  otherwise  use  ypchfn, lchfn or any other implementation for
29       non-local entries.
30

OPTIONS

32       -f, --full-name full-name
33              Specify your real name.
34
35       -o, --office office
36              Specify your office room number.
37
38       -p, --office-phone office-phone
39              Specify your office phone number.
40
41       -h, --home-phone home-phone
42              Specify your home phone number.
43
44       -u, --help
45              Display help text and exit.
46
47       -v, --version
48              Display version information and exit.
49

CONFIG FILE ITEMS

51       chfn reads the /etc/login.defs(5) configuration file.   Note  that  the
52       configuration  file  could  be  distributed  with another package (e.g.
53       shadow-utils).  The following  configuration  items  are  relevant  for
54       chfn(1):
55
56       CHFN_RESTRICT string
57           Indicate which fields are changeable by chfn.
58
59           The  boolean setting "yes" means that only the Office, Office Phone
60           and Home Phone fields are  changeable,  and  boolean  setting  "no"
61           means that also the Full Name is changeable.
62
63           Another  way  to specify changeable fields is by abbreviations: f =
64           Full Name, r = Office (room), w = Office (work)  Phone,  h  =  Home
65           Phone.   For  example,  CHFN_RESTRICT "wh" allows changing work and
66           home phone numbers.
67
68           If CHFN_RESTRICT is undefined, then all finger information is read-
69           only.  This is the default.
70

EXIT STATUS

72       Returns 0 if operation was successful, 1 if operation failed or command
73       syntax was not valid.
74

SEE ALSO

76       chsh(1), finger(1), login.defs(5), passwd(5)
77

AUTHOR

79       Salvatore Valente <svalente@mit.edu>
80

AVAILABILITY

82       The chfn command is part of the util-linux  package  and  is  available
83       from https://www.kernel.org/pub/linux/utils/util-linux/.
84
85
86
87util-linux                       November 2015                         CHFN(1)
Impressum