LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to delete a user from group? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-delete-a-user-from-group-785354/)

rammohantv 01-28-2010 08:28 AM

How to delete a user from group?
 
Please let me knwo how to delete a user from a group?

i am new to this group started linux admin course.

prasanta 01-28-2010 11:21 AM

Use `usermod` with the `-G` option. For more information see the man page.

--
Prasanta

prasanta 01-28-2010 11:21 AM

Use `usermod` with the `-G` option. For more information see the man page.

--
Prasanta

worm5252 01-28-2010 11:23 AM

man usermod

Quote:

-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
A list of supplementary groups which the user is also a member of.
Each group is separated from the next by a comma, with no
intervening whitespace. The groups are subject to the same
restrictions as the group given with the -g option. If the user is
currently a member of a group which is not listed, the user will be
removed from the group. This behaviour can be changed via the -a
option, which appends the user to the current supplementary group
list.

rammohantv 01-29-2010 12:21 AM

Thanks


All times are GMT -5. The time now is 12:46 AM.