Take the 2-minute tour ×
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.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.