Add an Existing User Account to a Group

Snippet

You already have a group, and need to add a user to it.

Say, a vagrant user to the www-data group, or any user to the sudo group.

# usermod -a -G examplegroup exampleusername
 
# usermod -a -G www-data vagra t 
 
# usermod -a -G sudo kitt

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.