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(1), lchfn(1) or any other implementation
29       for 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           Print version and exit. The short options -V have been used since
49           version 2.39; old versions use deprecated -v.
50
51       -h, --help
52           Display help text and exit.
53
54       -V, --version
55           Print version and exit.
56

CONFIG FILE ITEMS

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

EXIT STATUS

79       Returns 0 if operation was successful, 1 if operation failed or command
80       syntax was not valid.
81

AUTHORS

83       Salvatore Valente <svalente@mit.edu>
84

SEE ALSO

86       chsh(1), finger(1), login.defs(5), passwd(5)
87

REPORTING BUGS

89       For bug reports, use the issue tracker at
90       https://github.com/util-linux/util-linux/issues.
91

AVAILABILITY

93       The chfn command is part of the util-linux package which can be
94       downloaded from Linux Kernel Archive
95       <https://www.kernel.org/pub/linux/utils/util-linux/>.
96
97
98
99util-linux 2.39.2                 2023-06-14                           CHFN(1)
Impressum