How to change primary user group of a user? Preferably without losing the current primary group altogether as the user is part of 'staff' ie. admin. I suppose I could create another admin user and then recreate the original user, but is there a simpler way?

link|improve this question

75% accept rate
feedback

2 Answers

Have you try newgrp command?

link|improve this answer
feedback

Use usermod(1M):

# usermod -g PRIMARY_GROUP -G SECONDARY_GROUP username
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.