shadow/man/chfn.1

52 lines
2.0 KiB
Groff

.\" Title: chfn
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: 06/06/2006
.\" Manual: User Commands
.\" Source: User Commands
.\"
.TH "CHFN" "1" "06/06/2006" "User Commands" "User Commands"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
chfn \- change real user name and information
.SH "SYNOPSIS"
.HP 5
\fBchfn\fR [\-f\ \fIfull_name\fR] [\-r\ \fIroom_no\fR] [\-w\ \fIwork_ph\fR] [\-h\ \fIhome_ph\fR] [\-o\ \fIother\fR] [\fIuser\fR]
.SH "DESCRIPTION"
.PP
\fBchfn\fR
changes user fullname, office number, office extension, and home phone number information for a user's account. This information is typically printed by
\fBfinger\fR(1)
and similar programs. A normal user may only change the fields for her own account, subject to the restrictions in
\fI/etc/login.defs\fR. (The default configuration is to prevent users from changing their fullname.) The super user may change any field for any account. Additionally, only the super user may use the
\fB\-o\fR
option to change the undefined portions of the GECOS field.
.PP
The only restriction placed on the contents of the fields is that no control characters may be present, nor any of comma, colon, or equal sign. The
\fIother\fR
field does not have this restriction, and is used to store accounting information used by other applications.
.PP
If none of the options are selected,
\fBchfn\fR
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
\fB[ ]\fR
marks. Without options,
\fBchfn\fR
prompts for the current user account.
.SH "FILES"
.TP 3n
\fI/etc/login.defs\fR
Shadow password suite configuration.
.TP 3n
\fI/etc/passwd\fR
User account information.
.SH "SEE ALSO"
.PP
\fBchsh\fR(1),
\fBlogin.defs\fR(5),
\fBpasswd\fR(5).