LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 09-13-2006, 03:09 AM   #1
Akhran
Member
 
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?

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

Rep: Reputation: 73
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
Code:
#gpasswd -d username groupname
 
Old 09-13-2006, 04:09 AM   #3
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

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


Reply


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


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

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