LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to add a single user to more than one group ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-a-single-user-to-more-than-one-group-732452/)

nyce.maan 06-12-2009 07:30 AM

How to add a single user to more than one group ?
 
Hello, I am new to Linux. Can anyone tell me how to add a single user to more than one group ?

colucix 06-12-2009 07:47 AM

Code:

usermod -G group1,group2,group3,... username
See man usermod for details.

druuna 06-12-2009 07:50 AM

Hi,

With the usermod command you can, among other things, add groups to a user:

usermod -G group1,group2 foobar, this would add group1 and group2 to user foobar.

Look at the usermod manpage for all other options.

Hope this helps.


All times are GMT -5. The time now is 08:24 AM.