LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

chfn

change user finger information

TLDR

Update a user's full name
$ chfn -f [new_display_name] [username]
copy
Update a user's office room number
$ chfn -o [new_office_room_number] [username]
copy
Update a user's office phone number
$ chfn -p [new_office_telephone_number] [username]
copy
Update a user's home phone number
$ chfn -h [new_home_telephone_number] [username]
copy

SYNOPSIS

chfn [options] [username]

DESCRIPTION

chfn changes user information stored in the GECOS field of /etc/passwd. This information is displayed by the finger command and other utilities that show user details.Users can change their own information; root can change any user's information.

PARAMETERS

-f, --full-name name

Set the user's full name
-o, --office office
Set office room number
-p, --office-phone phone
Set office phone number
-h, --home-phone phone
Set home phone number
-u, --help
Display help message

INSTALL

sudo apt install passwd
copy
sudo pacman -S shadow
copy
sudo apk add shadow
copy
sudo zypper install shadow
copy
nix profile install nixpkgs#shadow
copy

CAVEATS

Some systems restrict which fields users can modify. The GECOS field has a maximum length limit. Changes require authentication unless run as root.

HISTORY

The GECOS field originated from the General Electric Comprehensive Operating System, where it stored accounting information. Its use for user information became a Unix convention.

SEE ALSO

finger(1), passwd(1), usermod(8)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid