Change default or primary group for a user in Linux or Unix

Do the following:

## see which groups you belong to
groups
## safely change primary group
usermod -g NewPrimaryGroup -G oldgroup1,oldgroup2,oldgroup3 my.username

About Vinh Nguyen

Statistician

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>