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 ?
|
Code:
usermod -G group1,group2,group3,... username |
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. |