'\" t .\" Title: chfn .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.75.1 .\" Date: 07/24/2009 .\" Manual: Polecenia użytkownik\('ow .\" Source: Polecenia użytkownik\('ow .\" Language: Polish .\" .TH "CHFN" "1" "07/24/2009" "Polecenia użytkownik\('ow" "Polecenia użytkownik\('ow" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAZWA" chfn \- change real user name and information .SH "SK\(/LADNIA" .HP \w'\fBchfn\fR\ 'u \fBchfn\fR [\-f\ \fIfull_name\fR] [\-r\ \fIroom_no\fR] [\-w\ \fIwork_ph\fR] [\-h\ \fIhome_ph\fR] [\-o\ \fIother\fR] [\fIuser\fR] .SH "OPIS" .PP The \fBchfn\fR command 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 /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 \fB\-o\fR option to change the undefined portions of the GECOS field\&. .PP These fields must not contain any colons\&. Except for the \fIother\fR 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 \fIother\fR field 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 "CONFIGURATION" .PP The following configuration variables in /etc/login\&.defs change the behavior of this tool: .PP \fBCHFN_AUTH\fR (boolean) .RS 4 If \fIyes\fR, the \fBchfn\fR program will require authentication before making any changes, unless run by the superuser\&. .RE .PP \fBCHFN_RESTRICT\fR (string) .RS 4 This parameter specifies which values in the \fIgecos\fR field of the /etc/passwd file may be changed by regular users using the \fBchfn\fR program\&. It can be any combination of letters \fIf\fR, \fIr\fR, \fIw\fR, \fIh\fR, for Full name, Room number, Work phone, and Home phone, respectively\&. For backward compatibility, \fIyes\fR is equivalent to \fIrwh\fR and \fIno\fR is equivalent to \fIfrwh\fR\&. If not specified, only the superuser can make any changes\&. The most restrictive setting is better achieved by not installing \fBchfn\fR SUID\&. .RE .PP \fBLOGIN_STRING\fR (string) .RS 4 The string used for prompting a password\&. The default is to use "Password: ", or a translation of that string\&. If you set this variable, the prompt will no be translated\&. .sp If the string contains \fI%s\fR, this will be replaced by the user\'s name\&. .RE .SH "PLIKI" .PP /etc/login\&.defs .RS 4 Konfiguracja pakietu shadow\&. .RE .PP /etc/passwd .RS 4 Informacja o kontach użytkownik\('ow\&. .RE .SH "ZOBACZ TAKŻE" .PP \fBchsh\fR(1), \fBlogin.defs\fR(5), \fBpasswd\fR(5)\&.