<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Remove Linux User From a Secondary Group ( Supplementary Groups )</title> <atom:link href="http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Alex</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-65870</link> <dc:creator>Alex</dc:creator> <pubDate>Wed, 21 Dec 2011 16:24:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-65870</guid> <description>If you want to add/remove a user only to/from a single secondary group, use gpasswd command
Following your example
Remove tom from sales group
gpasswd -d tom sales
Add tom to printer group
gpasswd -a tom printer</description> <content:encoded><![CDATA[<p>If you want to add/remove a user only to/from a single secondary group, use gpasswd command</p><p>Following your example</p><p>Remove tom from sales group<br
/> gpasswd -d tom sales</p><p>Add tom to printer group<br
/> gpasswd -a tom printer</p> ]]></content:encoded> </item> <item><title>By: Rajesh R</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-65225</link> <dc:creator>Rajesh R</dc:creator> <pubDate>Tue, 06 Dec 2011 10:22:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-65225</guid> <description>[root@localhost ~]# gpasswd -d new tes
Removing user new from group tes
gpasswd: unknown member new
while trying getting this error
need to remove new (new-user from group- tes)</description> <content:encoded><![CDATA[<p>[root@localhost ~]# gpasswd -d new tes<br
/> Removing user new from group tes<br
/> gpasswd: unknown member new</p><p>while trying getting this error<br
/> need to remove new (new-user from group- tes)</p> ]]></content:encoded> </item> <item><title>By: Juan Manuel</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-59559</link> <dc:creator>Juan Manuel</dc:creator> <pubDate>Sun, 22 May 2011 18:13:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-59559</guid> <description>Renato, the -R argument don&#039;t exist for groupmod command in Ubuntu. Try man groupmod.</description> <content:encoded><![CDATA[<p>Renato, the -R argument don&#8217;t exist for groupmod command in Ubuntu. Try man groupmod.</p> ]]></content:encoded> </item> <item><title>By: renato silva</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-56370</link> <dc:creator>renato silva</dc:creator> <pubDate>Fri, 18 Mar 2011 12:37:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-56370</guid> <description>Remove:
groupmod -R user group
ADD:
groupmod -A user group</description> <content:encoded><![CDATA[<p>Remove:<br
/> groupmod -R user group</p><p>ADD:<br
/> groupmod -A user group</p> ]]></content:encoded> </item> <item><title>By: dario boring</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-56009</link> <dc:creator>dario boring</dc:creator> <pubDate>Sat, 26 Feb 2011 11:53:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-56009</guid> <description>to remove all groups from user
usermod -G &quot;&quot; javito</description> <content:encoded><![CDATA[<p>to remove all groups from user<br
/> usermod -G &#8220;&#8221; javito</p> ]]></content:encoded> </item> <item><title>By: ankit gupta</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-50010</link> <dc:creator>ankit gupta</dc:creator> <pubDate>Sat, 09 Oct 2010 11:38:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-50010</guid> <description>Thank Dear</description> <content:encoded><![CDATA[<p>Thank Dear</p> ]]></content:encoded> </item> <item><title>By: Andrew</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-48526</link> <dc:creator>Andrew</dc:creator> <pubDate>Tue, 27 Jul 2010 17:13:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-48526</guid> <description>lol late reply, @ ashim
usermod -a -G GROUP1,GROUP2,GROUPETC USER</description> <content:encoded><![CDATA[<p>lol late reply, @ ashim</p><p>usermod -a -G GROUP1,GROUP2,GROUPETC USER</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-48390</link> <dc:creator>Chris</dc:creator> <pubDate>Sat, 17 Jul 2010 19:44:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-48390</guid> <description>I don&#039;t know if it&#039;s available from other platforms or not, but I have this command on Arch which seems more intuitive and easier to do:
groupmems -g [group_name] -d [user_name]
For example, if I want to remove sally from group admins:
groupmems -g admins -d sally</description> <content:encoded><![CDATA[<p>I don&#8217;t know if it&#8217;s available from other platforms or not, but I have this command on Arch which seems more intuitive and easier to do:</p><p>groupmems -g [group_name] -d [user_name]</p><p>For example, if I want to remove sally from group admins:</p><p>groupmems -g admins -d sally</p> ]]></content:encoded> </item> <item><title>By: Mario</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-43801</link> <dc:creator>Mario</dc:creator> <pubDate>Wed, 23 Sep 2009 20:02:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-43801</guid> <description>this dint help me
id -nG aares00
OutPut= aaresusers rootmembers
gpasswd -d aares00 rootmembers
OutPut= Removing user aares00 from group rootmembers
id -nG aares00
OutPut= aaresusers rootmembers</description> <content:encoded><![CDATA[<p>this dint help me</p><p>id -nG aares00<br
/> OutPut= aaresusers rootmembers</p><p>gpasswd -d aares00 rootmembers<br
/> OutPut= Removing user aares00 from group rootmembers</p><p>id -nG aares00<br
/> OutPut= aaresusers rootmembers</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-43792</link> <dc:creator>Mike</dc:creator> <pubDate>Wed, 23 Sep 2009 10:12:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-43792</guid> <description>to remove a user from one supplemental group only:-
gpasswd -d USER GROUP</description> <content:encoded><![CDATA[<p>to remove a user from one supplemental group only:-</p><p>gpasswd -d USER GROUP</p> ]]></content:encoded> </item> <item><title>By: cheri</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-43086</link> <dc:creator>cheri</dc:creator> <pubDate>Thu, 13 Aug 2009 18:22:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-43086</guid> <description>Hi,
I have added user to a group called sales using smbldap-usermod -G  .
How do I remove this user from the supplementary group. I was once succesful in removing the user by using the command smbldap-usermod -g  . But when I give the time  id -nG the supplementary group still shows up.
Can you explain why this happens and how to overcome this problem.
Appreciate your help
Cheri</description> <content:encoded><![CDATA[<p>Hi,</p><p>I have added user to a group called sales using smbldap-usermod -G  .<br
/> How do I remove this user from the supplementary group. I was once succesful in removing the user by using the command smbldap-usermod -g  . But when I give the time  id -nG the supplementary group still shows up.<br
/> Can you explain why this happens and how to overcome this problem.<br
/> Appreciate your help</p><p>Cheri</p> ]]></content:encoded> </item> <item><title>By: Bhagyesh Dhamecha</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-42548</link> <dc:creator>Bhagyesh Dhamecha</dc:creator> <pubDate>Wed, 15 Jul 2009 10:39:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-42548</guid> <description>Please add me in your group and please gime update and help  for any my query..
Thanks
Bhagyesh</description> <content:encoded><![CDATA[<p>Please add me in your group and please gime update and help  for any my query..</p><p>Thanks<br
/> Bhagyesh</p> ]]></content:encoded> </item> <item><title>By: ashim</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41984</link> <dc:creator>ashim</dc:creator> <pubDate>Wed, 10 Jun 2009 05:42:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41984</guid> <description>Can anyone tell me command(s) to add an user to a new group without mentioning all the groups the user previously belongs to? (I haven&#039;t gone thru man)</description> <content:encoded><![CDATA[<p>Can anyone tell me command(s) to add an user to a new group without mentioning all the groups the user previously belongs to? (I haven&#8217;t gone thru man)</p> ]]></content:encoded> </item> <item><title>By: BAReFOOt</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41380</link> <dc:creator>BAReFOOt</dc:creator> <pubDate>Tue, 28 Apr 2009 15:41:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41380</guid> <description>In one line (and nice for scripts):
Add a group: usermod -aG GROUP USER
Remove a group: usermod -G $(id -nG USER&#124; sed -e &#039;s/GROUP //&#039; -e &#039;s/ /,/g&#039;) USER</description> <content:encoded><![CDATA[<p>In one line (and nice for scripts):<br
/> Add a group: usermod -aG GROUP USER<br
/> Remove a group: usermod -G $(id -nG USER| sed -e &#8216;s/GROUP //&#8217; -e &#8216;s/ /,/g&#8217;) USER</p> ]]></content:encoded> </item> <item><title>By: kailash bhandari</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41359</link> <dc:creator>kailash bhandari</dc:creator> <pubDate>Sat, 25 Apr 2009 18:38:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41359</guid> <description>A user (pop)who is belong to  SALES group. i want that pop is remove from SALES group. how can i do it. not tell me  manually. i want command to remove it..</description> <content:encoded><![CDATA[<p>A user (pop)who is belong to  SALES group. i want that pop is remove from SALES group. how can i do it. not tell me  manually. i want command to remove it..</p> ]]></content:encoded> </item> <item><title>By: shingai</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41015</link> <dc:creator>shingai</dc:creator> <pubDate>Thu, 02 Apr 2009 13:42:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-41015</guid> <description>lets say i want to add an existing user to an existing group. when the user belongs to other groups already. what command will i use.
using usermod-g &quot;groupname&quot; user will change the initial gropu of the user and delete him from another group.
usermod -G this will lead from the user being deleted ffrom all other groups except the one sspecified.</description> <content:encoded><![CDATA[<p>lets say i want to add an existing user to an existing group. when the user belongs to other groups already. what command will i use.</p><p>using usermod-g &#8220;groupname&#8221; user will change the initial gropu of the user and delete him from another group.<br
/> usermod -G this will lead from the user being deleted ffrom all other groups except the one sspecified.</p> ]]></content:encoded> </item> <item><title>By: test</title><link>http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-40905</link> <dc:creator>test</dc:creator> <pubDate>Wed, 25 Mar 2009 15:21:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-remove-user-from-group/#comment-40905</guid> <description>Thanks for your website.
it&#039;s very helpful.</description> <content:encoded><![CDATA[<p>Thanks for your website.<br
/> it&#8217;s very helpful.</p> ]]></content:encoded> </item> </channel> </rss>
