Any of the four pieces of information can be specified on the command line. If no information is given on the command line, chfn enters interactive mode.
In interactive mode, chfn will prompt for each field. At a prompt, you can enter the new information, or just press return to leave the field unchanged. Enter the keyword "none" to make the field blank.
chfn supports non-local entries (kerberos, LDAP, etc.) if linked with libuser, otherwise use ypchfn, lchfn or any other implementation for non-local entries.
- -f, --full-name full-name
- Specify your real name.
- -o, --office office
- Specify your office room number.
- -p, --office-phone office-phone
- Specify your office phone number.
- -h, --home-phone home-phone
- Specify your home phone number.
- -u, --help
- Display help text and exit.
- -v, --version
- Display version information and exit.
The boolean setting "yes" means that only the Office, Office Phone and Home Phone fields are changeable, and boolean setting "no" means that also the Full Name is changeable.
Another way to specify changeable fields is by abbreviations: f = Full Name, r = Office (room), w = Office (work) Phone, h = Home Phone. For example, CHFN_RESTRICT "wh" allows changing work and home phone numbers.
If CHFN_RESTRICT is undefined, then all finger information is read-only. This is the default.