Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 (http://linuxcommand.org/man_pages/usermod8.html).

share|improve this question

3 Answers 3

up vote 5 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

modify

usermod -c "Snow John" username

To verify users' full name finger username

share|improve this answer

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.