Name
chfn
Synopsis
chfn [options
] [username
]
Change the information that is stored in /etc/passwd and displayed to the finger query. Without options, chfn enters interactive mode and prompts for changes. To make a field blank, 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, --full-name
Specify new full name.
- -h, --home-phone
Specify new home phone number.
- -o, --office
Specify new office number.
- -p, --office-phone
Specify new office phone number.
- -u, --usage, --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, Fourth 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.