Linux chfn command

Updated: 04/26/2017 by Computer Hope

About chfn

chfn is used to change a user's finger information. This information is stored in the file /etc/passwd, and includes the user's real name, work room, work phone number, and home phone number.

chfn syntax

chfn [-f full_name] [-r room_no] [-w work_ph] [-h home_ph] [-o other] [user]

-f full_name

Allows someone to change their full name on their account.

-r room_no

Allows someone to change their room number on their account.

-w work_ph

Allows someone to change their work phone number on their account.

-h home_ph

Allows someone to change their home phone number on their account.

-o other

Allows someone to change any other notes on their account.

user

The name of the user who is being changed.

chfn examples

chfn

Running the command without any options will enable the user to change all the user information.

Note: If you're attempting to change the actual username and not just the description of the user, you may want to edit the password file directly; see the vipw command for more information.

chsh — Change login shell.
usermod — Modify a user's account.
passwd — Change a user's password.
vipw — Safely edit the password file.