LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-04-2012, 04:46 AM   #1
rockstar05
Member
 
Registered: Dec 2011
Posts: 83

Rep: Reputation: Disabled
How to remove particular user from group ?


Hi everyone,

i want to remove user 'rock' from group 'HR' ?

please tell me the command for removing user from that group.

Thanks
 
Old 01-04-2012, 04:57 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
Code:
 usermod -G {existing, groups, except, one, to, remove, from} someuser
"man usermod" for more information, you would be surprised at what you will find in the man pages, if you actually read them.
 
Old 01-04-2012, 05:17 AM   #3
rockstar05
Member
 
Registered: Dec 2011
Posts: 83

Original Poster
Rep: Reputation: Disabled
Thank you fukawi1
 
Old 01-05-2012, 04:23 PM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Just to note, that in openSUSE the options -A and -R exist in usermod, and as you guess: to add or remove a secondary group of a user.
 
  


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
Remove user from root group JJJCR Linux - Newbie 5 09-05-2011 08:36 PM
Is it possible to add/remove a user to a group without logging out and in again? [KIA]aze Linux - General 12 03-01-2009 05:49 PM
groupdel: cannot remove user's primary group. leiw Linux - General 1 03-28-2007 10:12 PM
How to remove user from their secondary group? Akhran Linux - Newbie 2 09-13-2006 04:09 AM
remove a user from group in fedora core 3 bnarenderraju Fedora 7 07-20-2005 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration