Add User to Existing Group in Ubuntu

Posted in Quick Tips | 11 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.

Post a comment

Hello guest, care to post a comment?