Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-13-2006, 03:09 AM   #1
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
How to remove user from their secondary group?

Users can be added to secondary groups with usermod -G. How do I remove the users from their secondary groups?

Old 09-13-2006, 03:35 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can use usermod or gpasswd. The problem with usermod is that you will have to relist all the groups that you want the user to be part of. Gpasswd seems to be a bit more efficient. With gpasswd you would do something like
#gpasswd -d username groupname
Old 09-13-2006, 04:09 AM   #3
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
or just edit with "vi" /etc/group


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
create user with secondary group levis_inferno Linux - Networking 6 05-31-2006 12:33 AM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-12-2005 11:16 PM
remove a user from group in fedora core 3 bnarenderraju Fedora 7 07-20-2005 09:32 AM
Primary and secondary group trophy Linux - Newbie 2 04-03-2004 12:30 AM
Remove secondary HD (HDB) JSylvia007 Linux - Hardware 7 11-04-2003 12:09 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration