Linux How to: Add a existing user to existing group

usermod example

Add existing user john to admin supplementary/secondary group with usermod command using -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option:


# usermod -a -G admin john

Change existing user john primary group to mail:


# usermod -g mail tony

Comments

blog comments powered by Disqus
Fork me on GitHub