Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

chfn(1) [centos man page]

CHFN(1) 							   User Commands							   CHFN(1)

NAME
chfn - change your finger information SYNOPSIS
chfn [-f full-name] [-o office] ,RB [ -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 pro- gram. 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. chfn is used to change local entries only. Use ypchfn, lchfn or any other implementation for non-local entries. COMMAND LINE 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. 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. 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. -u, --help Print a usage message and exit. -v, --version Print version information and exit. EXIT STATUS
Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid. SEE ALSO
finger(1), passwd(5) AUTHOR
Salvatore Valente <svalente@mit.edu> AVAILABILITY
The chfn command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux July 2009 CHFN(1)

Check Out this Related Man Page

chfn(1) 						      General Commands Manual							   chfn(1)

NAME
chfn - change finger information SYNOPSIS
chfn [-D binddn] [-P path] [-f name] [-o office] [-p phone] [-h home_phone] [-m other] [-r service] [-q] [-u] [-v] [user] DESCRIPTION
chfn is used to change the user finger information. This are the users fullname, office room number, office phone number and home phone number. This information is stored in the /etc/passwd file and typically printed by finger(1) and similiar programs. A normal user may only change the fields for their own account, the super user may change the fields for any account. Also, only the super user may use the -o option to change the undefined portions of the GECOS field. If no information is given on the command line, chfn operates in an interactive fashion, prompting the user for each field. Enter the new value to change the field, or leave the line blank to use the current value. Enter none or a blank only to remove the current value. The current value is displayed between a pair of [ ] marks. The only restrictions placed on the contents of the fields is that no control characters may be present, nor any of comma, colon, or equal sign. The other field does not have this restriction, and is used to store accounting information used by other applications. This version of chfn is able to change the shell of local, NIS, NIS+ and LDAP accounts, if the permissions allow it. OPTIONS
-D, --binddn binddn Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentica- tion. -P, --path path The passwd and shadow files are located below the specified directory path. chfn will use this files, not /etc/passwd and /etc/shadow. This is useful for example on NIS master servers, where you do not want to give all users in the NIS database auto- matic access to your NIS server and the NIS map is build from special files. -f, --full-name Specify your real name. -o, --office Specify your office room number. -p, --phone Specify your office phone number. -h, --home-phone Specify your home phone number. -m, --other Specify the undefined portions of the GECOS field. -r, --service Specify the service where the GECOS field should be changed. Supported services are files, ldap, nis and nisplus. -q, --quite Don't be verbose. -u, --usage Print a usage message and exit. --help Print a more verbose help text and exit. -v, --version Print version information and exit. ENVIRONMENT
SHADOW_CHFN - If this environment variable is set to 1, the chfn options are compatible to the version from the shadow suite. FILES
/etc/passwd - user account information SEE ALSO
chsh(1), finger(1), passwd(5) AUTHOR
Thorsten Kukuk <kukuk@suse.de> pwdutils February 2004 chfn(1)
Man Page