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
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
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