Name

chfn

Synopsis

chfn [options] [username]

Change the information that is stored in /etc/passwd and displayed to the finger query. With no options, chfn enters interactive mode and prompts for changes. To blank a field, enter the keyword none. Only a privileged user can change information for another user. For regular users, chfn prompts for the user’s password before making the change.

Options

-f name, --full-name name

Specify new full name.

-h homephone, --home-phone homephone

Specify new home phone number.

-o office, --office office

Specify new office number.

-p officephone, --office-phone officephone

Specify new office phone number.

-u, --help

Print help message and then exit.

-v, --version

Print version information and then exit.

Example

chfn -f "Ellen Siever" ellen

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.