Add User to Existing Group in Ubuntu

Posted in Quick Tips | 19 comments
Tags: , , , ,

command prompt logousermod is shell command for manipulating user accounts in Ubuntu and almost any other Linux distro. You can use it to add existing user to existing group, for example once installed Virtualbox (sudo apt-get install virtualbox-ose) you should add your user account to vboxusers group to be able to use USB flash drives inside virtual machines.

To add user bob to supplementary group vboxusers use usermod command as follows (-a parameter specifies adding while -G points to group name):

sudo usermod -a -G vboxusers bob

Want to change user’s primary group from default to something else (e.g. group named adm)? No problems:

sudo usermod -g adm bob

Follow @Ubuntuka on Twitter!
RSSComments

bastien

Posted on June 11, 2012 at 9:39 am

Just in case you don’t see it working the way you expect it: you may need to logout and login again to actually be able to use your new powers!

Mack

Posted on August 14, 2012 at 8:00 am

"-a parameter specifies" what does this mean? I'm new to ubuntu.

lara

Posted on August 19, 2012 at 8:31 am

-a parameter specifies "adding", read again, or maybe it wasn't written when you read it before.

junrrein

Posted on August 20, 2012 at 7:23 pm

Thank you very much!

ipad 2 pris

Posted on January 8, 2013 at 10:22 pm

Its such as you read my mind! You seem to understand a lot about this,
such as you wrote the ebook in it or something.
I think that you just could do with some p.c. to force the message
house a bit, but other than that, this is fantastic
blog. A great read. I will certainly be back.

dddd

Posted on March 7, 2013 at 11:23 am

it working

AdobePhotoshopCS6KeyGe

Posted on March 17, 2013 at 7:27 pm

nice site the text becomes a bit hard to read on your background after a while tho. jus a friendly suggestion =) Adobe Photoshop CS6 Key Generator http://www.youtube.com/watch?v=sB-JLGkleK

bangbrosaccountgenerat

Posted on March 19, 2013 at 8:18 am

Hello.This article was extremely interesting, particularly since I was searching for thoughts on this issue last Thursday. bangbros account generator http://crackcreateworld.co

Geoffrey

Posted on May 16, 2013 at 1:16 pm

I just could not leave your site prior to suggesting that I actually loved the usual information an

individual supply in your guests? Is gonna be back continuously

to check up on new posts

http://tabdig.org

Posted on May 18, 2013 at 2:22 pm

An outstanding share! I’ve just forwarded this onto a co-worker who has been conducting a little research on this. And he in fact bought me lunch due to the fact that I found it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanx for spending time to talk about this issue here on your site.

Lisa

Posted on June 10, 2013 at 7:11 am

nice blog very informative

Casino en ligne

Posted on July 19, 2013 at 11:37 am

WOW!! actually, since longtime I am looking for this kind of post and eventually I perceived you are posting shortly this post. That's help me a lots. delight keep updating more handful information. Thanks

Online Casino

Posted on August 4, 2013 at 10:17 am

Thanks for sharing your thoughts about apt. Regards

Patrick Hospes

Posted on August 16, 2013 at 7:35 am

This is really good published article. Such a great yet interesting post. Thank you very much for sharing this nice stuff.

hire bury djs

Posted on December 7, 2013 at 5:55 am

You have mentioned in your post about usermod that it is a shell command which is used for manipulating accounts in ubuntu, really informative. Please tell more about adding existing user to existing group?

buy soccer equipment

Posted on December 9, 2013 at 6:05 am

Great post about usermod shell command which is used for manipulating user accounts in ubuntu, this is really good information about usermod.Thanks for the post.

liverpool djs

Posted on April 5, 2014 at 5:46 pm

I have read the article it is really very informative.Thanks for sharing the post.

manchester djs

Posted on April 5, 2014 at 5:47 pm

Great post really like it a lot.Thanks for sharing the post.

Post a comment

Hello guest, care to post a comment?