summaryrefslogtreecommitdiffstats
path: root/login-utils/chfn.1.adoc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:30:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:30:35 +0000
commit378c18e5f024ac5a8aef4cb40d7c9aa9633d144c (patch)
tree44dfb6ca500d32cabd450649b322a42e70a30683 /login-utils/chfn.1.adoc
parentInitial commit. (diff)
downloadutil-linux-378c18e5f024ac5a8aef4cb40d7c9aa9633d144c.tar.xz
util-linux-378c18e5f024ac5a8aef4cb40d7c9aa9633d144c.zip
Adding upstream version 2.38.1.upstream/2.38.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'login-utils/chfn.1.adoc')
-rw-r--r--login-utils/chfn.1.adoc86
1 files changed, 86 insertions, 0 deletions
diff --git a/login-utils/chfn.1.adoc b/login-utils/chfn.1.adoc
new file mode 100644
index 0000000..6377e26
--- /dev/null
+++ b/login-utils/chfn.1.adoc
@@ -0,0 +1,86 @@
+//po4a: entry man manual
+////
+chfn.1 -- change your finger information
+(c) 1994 by salvatore valente <svalente@athena.mit.edu>
+
+This program is free software. You can redistribute it and
+modify it under the terms of the GNU General Public License.
+There is no warranty.
+////
+= chfn(1)
+:doctype: manpage
+:man manual: User Commands
+:man source: util-linux {release-version}
+:page-layout: base
+:command: chfn
+
+== NAME
+
+chfn - change your finger information
+
+== SYNOPSIS
+
+*chfn* [*-f* _full-name_] [*-o* _office_] [*-p* _office-phone_] [*-h* _home-phone_] [*-u*] [*-v*] [_username_]
+
+== DESCRIPTION
+
+*chfn* is used to change your finger information. This information is stored in the _/etc/passwd_ file, and is displayed by the *finger* program. The Linux *finger* command will display four pieces of information that can be changed by *chfn*: your real name, your work room and phone, and your home phone.
+
+Any of the four pieces of information can be specified on the command line. If no information is given on the command line, *chfn* enters interactive mode.
+
+In interactive mode, *chfn* will prompt for each field. At a prompt, you can enter the new information, or just press return to leave the field unchanged. Enter the keyword "none" to make the field blank.
+
+*chfn* supports non-local entries (kerberos, LDAP, etc.) if linked with libuser, otherwise use *ypchfn*(1), *lchfn*(1) or any other implementation for non-local entries.
+
+== OPTIONS
+
+*-f*, *--full-name* _full-name_::
+Specify your real name.
+
+*-o*, *--office* _office_::
+Specify your office room number.
+
+*-p*, *--office-phone* _office-phone_::
+Specify your office phone number.
+
+*-h*, *--home-phone* _home-phone_::
+Specify your home phone number.
+
+include::man-common/help-version.adoc[]
+
+== CONFIG FILE ITEMS
+
+*chfn* reads the _/etc/login.defs_ configuration file (see *login.defs*(5)). Note that the configuration file could be distributed with another package (e.g., shadow-utils). The following configuration items are relevant for *chfn*:
+
+*CHFN_RESTRICT* _string_::
+
+Indicate which fields are changeable by *chfn*.
++
+The boolean setting *"yes"* means that only the Office, Office Phone and Home Phone fields are changeable, and boolean setting *"no"* means that also the Full Name is changeable.
++
+Another way to specify changeable fields is by abbreviations: f = Full Name, r = Office (room), w = Office (work) Phone, h = Home Phone. For example, *CHFN_RESTRICT "wh"* allows changing work and home phone numbers.
++
+If *CHFN_RESTRICT* is undefined, then all finger information is read-only. This is the default.
+
+== EXIT STATUS
+
+Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
+
+== AUTHORS
+
+mailto:svalente@mit.edu[Salvatore Valente]
+
+== SEE ALSO
+
+*chsh*(1),
+*finger*(1),
+*login.defs*(5),
+*passwd*(5)
+
+include::man-common/bugreports.adoc[]
+
+include::man-common/footer.adoc[]
+
+ifdef::translation[]
+include::man-common/translation.adoc[]
+endif::[]