Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I want to put some personal information (like Full Name) to an account, how can I check it again? And how can I modify it?

On Ubuntu server. With command line only.

share|improve this question

chfn is probably the easiest way to change the GECOS fields. I think on most systems normal users are restricted from changing the full name field by default, in which case you will have to do this as root:

sudo chfn -f 'New name' <user>

To see the fields just look at the /etc/passwd file, or use something like getent passwd $USER if you prefer to get the entire entry.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.