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

Answer:

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

e.g.

# useradd -G admin john

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

e.g.

# useradd -g admin john

 Leave a Reply

(required)

(required)

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>