chfn(1)


NAME

   chfn - change real user name and information

SYNOPSIS

   chfn [options] [LOGIN]

DESCRIPTION

   The chfn command changes user fullname, office room number, office
   phone number, and home phone number information for a user's account.
   This information is typically printed by finger(1) and similar
   programs. A normal user may only change the fields for her own account,
   subject to the restrictions in /etc/login.defs. (The default
   configuration is to prevent users from changing their fullname.) The
   superuser may change any field for any account. Additionally, only the
   superuser may use the -o option to change the undefined portions of the
   GECOS field.

   These fields must not contain any colons. Except for the other field,
   they should not contain any comma or equal sign. It is also recommended
   to avoid non-US-ASCII characters, but this is only enforced for the
   phone numbers. The other field is used to store accounting information
   used by other applications.

OPTIONS

   The options which apply to the chfn command are:

   -f, --full-name FULL_NAME
       Change the user's full name.

   -h, --home-phone HOME_PHONE
       Change the user's home phone number.

   -o, --other OTHER
       Change the user's other GECOS information. This field is used to
       store accounting information used by other applications, and can be
       changed only by a superuser.

   -r, --room ROOM_NUMBER
       Change the user's room number.

   -R, --root CHROOT_DIR
       Apply changes in the CHROOT_DIR directory and use the configuration
       files from the CHROOT_DIR directory.

   -u, --help
       Display help message and exit.

   -w, --work-phone WORK_PHONE
       Change the user's office phone number.

   If none of the options are selected, chfn operates in an interactive
   fashion, prompting the user with the current values for all of the
   fields. Enter the new value to change the field, or leave the line
   blank to use the current value. The current value is displayed between
   a pair of [ ] marks. Without options, chfn prompts for the current user
   account.

CONFIGURATION

   The following configuration variables in /etc/login.defs change the
   behavior of this tool:

   CHFN_RESTRICT (string)
       This parameter specifies which values in the gecos field of the
       /etc/passwd file may be changed by regular users using the chfn
       program. It can be any combination of letters f, r, w, h, for Full
       name, Room number, Work phone, and Home phone, respectively. For
       backward compatibility, yes is equivalent to rwh and no is
       equivalent to frwh. If not specified, only the superuser can make
       any changes. The most restrictive setting is better achieved by not
       installing chfn SUID.

FILES

   /etc/login.defs
       Shadow password suite configuration.

   /etc/passwd
       User account information.

SEE ALSO

   chsh(1), login.defs(5), passwd(5).


More Linux Commands

manpages/Tk_IsEmbedded.3.html
Tk_IsEmbedded(3) - retrieve information from Tk's local data
Tk_WindowId and the other names listed above are all macros that return fields from Tks local data structure for tkwin. None of these macros requires any intera

manpages/ltrace.1.html
ltrace(1) - A library call tracer - Linux manual page.......
ltrace is a program that simply runs the specified command until it exits. It intercepts and records the dynamic library calls which are called by the executed

manpages/systemd-run.1.html
systemd-run(1) Run programs in transient scope or service un
systemd-run may be used to create and start a transient .service or a .scope unit and run the specified COMMAND in it. If a command is run as transient service

manpages/Tcl_StringCaseMatch.3.html
Tcl_StringCaseMatch(3) - test whether a string matches a pat
This utility procedure determines whether a string matches a given pattern. If it does, then Tcl_StringMatch returns 1. Otherwise Tcl_StringMatch returns 0. The

manpages/perl5161delta.1.html
perl5161delta(1) what is new for perl v5.16.1 (Man Page)....
This document describes differences between the 5.16.0 release and the 5.16.1 release. If you are upgrading from an earlier release such as 5.14.0, first read p

manpages/setitimer.2.html
setitimer(2) - get or set value of an interval timer........
The system provides each process with three interval timers, each decrementing in a distinct time domain. When any timer expires, a signal is sent to the proces

manpages/XDestroyImage.3.html
XDestroyImage(3) - image utilities - Linux manual page......
The XInitImage function initializes the internal image manipulation routines of an image structure, based on the values of the various structure members. All fi

manpages/XFontProp.3.html
XFontProp(3) - load or unload fonts and font metric structur
The XLoadFont function loads the specified font and returns its associated font ID. If the font name is not in the Host Portable Character Encoding, the result

manpages/ncursesw5-config.1.html
ncursesw5-config(1) - helper script for ncurses libraries...
ncursesw5-config.1 - This is a shell script which simplifies configuring applications against a particular set of ncurses libraries. OPTIONS --prefix echos the

manpages/ggz.6.html
ggz(6) - GGZ Gaming Zone core client selector (Man Page)....
The GGZ Gaming Zone allows people to play many games online using so-called GGZ core clients which are chat clients with integrated game launchers. The ggz tool

manpages/Tk_IdToWindow.3.html
Tk_IdToWindow(3) - Find Tk's window information for an X win
Given an X window identifier and the X display it corresponds to, this procedure returns the corresponding Tk_Window handle. If there is no Tk_Window correspond

manpages/smbstatus.1.html
smbstatus(1) - report on current Samba connections (ManPage)
This tool is part of the samba(7) suite. smbstatus is a very simple program to list the current Samba connections. OPTIONS -P|--profile If samba has been compil





We can't live, work or learn in freedom unless the software we use is free.