chfn

Autres langues

Langue: fr

Version: 22/05/2009 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NOM

chfn - Modifier le nom complet et les informations associées à un utilisateur

SYNOPSIS

chfn [-f nom_complet] [-r no_bureau] [-w tel_bureau] [-h tel_perso] [-o autre] [utilisateur]

DESCRIPTION

The chfn command changes user fullname, office number, office extension, 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.

Si aucune option n'est sélectionnée, chfn opère de manière interactive, demandant à l'utilisateur d'entrer les valeurs actuelles de chacun des champs. Entrer une nouvelle valeur pour la modifier, ou de laisser une ligne blanche pour conserver la valeur actuelle. La valeur actuelle est indiquée entre crochets ([ ]). En l'absence d'option, chfn opère sur l'utilisateur actuel.

CONFIGURATION

Les variables de configuration suivantes de /etc/login.defs modifient le comportement de cet outil :

CHFN_RESTRICT (chaîne ce caractères)

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.

FICHIERS

/etc/login.defs

Configuration de la suite des mots de passe cachés « shadow password ».

/etc/passwd

Informations sur les comptes des utilisateurs.

VOIR AUSSI

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