Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm working on a Debian server as an inexperienced admin. I need to change the full name of a user (not the login name) provided during adduser USERNAME. How can I do this? I didn't find such an option in usermod (

share|improve this question
up vote 9 down vote accepted

The GECOS field in /etc/password can be modified with the chfn(1) command.

chfn -f "Joe Blow" jblow
share|improve this answer

You can edit /etc/passwd directly the full name a field in this file.

share|improve this answer

You can do the following

adduser username -c "John Snow" -s /bin/bash


usermod -c "Snow John" username

To verify users' full name finger username

share|improve this answer
Thank you! It works for me on Ubuntu 16.04. – DmitryKanunnikoff May 17 at 8:56

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.