Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Sep 162010

Add a user to group in Linux


To add a user to a group (supplementary), you can use the command below:


# useradd -G admin john

If you want to change the user's primary group, you can use


# useradd -g admin john

 Leave a Reply



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>