chfn

Autres langues

Langue: fr

Version: 04/04/2009 (ubuntu - 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.

La seule restriction pour le contenu des champs est qu'ils ne doivent contenir aucun caractère de contrôle, ni aucune virgule, deux-points ou signe égal. Le champ autre n'a pas cette limitation et peut être utilisé pour enregistrer des informations sur le compte pour d'autres 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

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.

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).