Super User is a question and answer site for computer enthusiasts and power users. 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

I just did usermod -l login-name old-name to change the username, but the group name is still the old one.

Any way of renaming the group name? I can't find any info to do so.

share|improve this question
up vote 32 down vote accepted

groupmod should work fine:

$ groupmod --help
Usage: groupmod [options] GROUP

  -g, --gid GID                 change the group ID to GID
  -h, --help                    display this help message and exit
  -n, --new-name NEW_GROUP      change the name to NEW_GROUP
  -o, --non-unique              allow to use a duplicate (non-unique) GID
  -p, --password PASSWORD       change the password to this (encrypted)

Use it like this:

groupmod --new-name NEW_GROUP_NAME OLD_GROUP_NAME
share|improve this answer
run it as a superuser – KawaiKx Jun 30 '14 at 18:56

To reNAME as you asked:
sudo groupmod -n new-name current-name

Note: If the name is already in use but you want to use it anyway:
sudo groupmod -o -n new-name current-name

If you are root you don't need to use sudo

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.