LinuxQuestions.org
Register a domain and help support LQ
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-28-2012, 10:15 AM   #1
thesullster
LQ Newbie
 
Registered: Jul 2010
Distribution: Debian6
Posts: 4

Rep: Reputation: 0
usermod -a -G


usermod -a -G sudo john does what ?

add user (john) to group (sudo) ?

what is the reverse command ? to remove john from sudo ?


thanks all !
 
Old 09-28-2012, 10:53 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
As always, you will find the answer in the man-page of the command:
Code:
man usermod
In this case, if you want to remove a user from a group you have to use the -G option without -a and specify in which groups the user should remain a member. The user will be removed from any group that exists but is not specified in the command.
 
  


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
usermod -p command deepak_message Linux - Server 3 07-20-2011 01:47 PM
usermod alexm21 Debian 4 02-21-2009 12:12 AM
Usermod carlosinfl Linux - General 8 09-19-2006 09:26 PM
usermod shanenin Linux - Software 4 12-08-2003 09:49 AM
usermod thelight1 Linux - Newbie 1 07-24-2003 01:00 PM


All times are GMT -5. The time now is 02:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration