]> git.ipfire.org Git - thirdparty/util-linux.git/blame - login-utils/chfn.1
docs: restore minus symbols in long opts
[thirdparty/util-linux.git] / login-utils / chfn.1
CommitLineData
6dbe3af9
KZ
1.\"
2.\" chfn.1 -- change your finger information
3.\" (c) 1994 by salvatore valente <svalente@athena.mit.edu>
4.\"
bf967a6c
BS
5.\" This program is free software. You can redistribute it and
6.\" modify it under the terms of the GNU General Public License.
7.\" There is no warranty.
6dbe3af9 8.\"
bf967a6c 9.TH CHFN 1 "July 2014" "util-linux" "User Commands"
6dbe3af9
KZ
10.SH NAME
11chfn \- change your finger information
12.SH SYNOPSIS
13.B chfn
3e1dd9e8
PB
14.RB [ \-f
15.IR full-name ]
16.RB [ \-o
17.IR office ]
b5fff521 18.RB [ \-p
3e1dd9e8
PB
19.IR office-phone ]
20.RB [ \-h
21.IR home-phone ]
b5fff521 22.RB [ \-u ]
3e1dd9e8
PB
23.RB [ \-v ]
24.RI [ username ]
6dbe3af9
KZ
25.SH DESCRIPTION
26.B chfn
27is used to change your finger information. This information is
28stored in the
29.I /etc/passwd
30file, and is displayed by the
31.B finger
32program. The Linux
33.B finger
34command will display four pieces of information that can be changed by
3e1dd9e8
PB
35.BR chfn :
36your real name, your work room and phone, and your home phone.
bf967a6c 37.PP
6dbe3af9
KZ
38Any of the four pieces of information can be specified on the command
39line. If no information is given on the command line,
40.B chfn
41enters interactive mode.
bf967a6c 42.PP
6dbe3af9
KZ
43In interactive mode,
44.B chfn
45will prompt for each field. At a prompt, you can enter the new information,
46or just press return to leave the field unchanged. Enter the keyword
47"none" to make the field blank.
bf967a6c
BS
48.PP
49.B chfn
50supports non-local entries (kerberos, LDAP, etc.\&) if linked with libuser,
51otherwise use \fBypchfn\fR, \fBlchfn\fR or any other implementation for
52non-local entries.
6dbe3af9
KZ
53.SH OPTIONS
54.TP
b06c1ca6 55.BR \-f , " \-\-full\-name " \fIfull-name
6dbe3af9
KZ
56Specify your real name.
57.TP
bf967a6c 58.BR \-o , " \-\-office " \fIoffice
6dbe3af9
KZ
59Specify your office room number.
60.TP
b06c1ca6 61.BR \-p , " \-\-office\-phone " \fIoffice-phone
6dbe3af9
KZ
62Specify your office phone number.
63.TP
b06c1ca6 64.BR \-h , " \-\-home\-phone " \fIhome-phone
6dbe3af9
KZ
65Specify your home phone number.
66.TP
bf967a6c 67.BR \-u , " \-\-help"
b4362b6f 68Display help text and exit.
6dbe3af9 69.TP
bf967a6c 70.BR \-v , " \-\-version"
b4362b6f 71Display version information and exit.
97da60c6
KZ
72.SH "EXIT STATUS"
73Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
6dbe3af9
KZ
74.SH "SEE ALSO"
75.BR finger (1),
76.BR passwd (5)
77.SH AUTHOR
78Salvatore Valente <svalente@mit.edu>
86d62711 79.SH AVAILABILITY
601d12fb
KZ
80The chfn command is part of the util-linux package and is available from
81ftp://ftp.kernel.org/pub/linux/utils/util-linux/.