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 06-01-2010, 11:49 PM   #1
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
usermod command,is it correct?


Code:
sudo usermod -a -G plugdev <your user id>
 
Old 06-01-2010, 11:57 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,243

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Looks ok
 
Old 06-02-2010, 12:04 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by grail View Post
Looks ok
ok

Last edited by cola; 06-02-2010 at 03:05 AM.
 
Old 06-02-2010, 12:26 AM   #4
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
Quote:
usermod -G "groupname" "user"
user will be member of the groups which are listed after "-G" option. he/she will be removed from all groups which are not listed there.
 
Old 06-02-2010, 02:40 AM   #5
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by grail View Post
Looks ok
Now what will be the command to delete/remove plugdev group from user account?
 
Old 06-02-2010, 02:42 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,243

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
livetoday has supplied answer
 
Old 06-02-2010, 03:05 AM   #7
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by grail View Post
livetoday has supplied answer
Adding all groups without plugdev?
Isn't it cumbersome?
 
Old 06-02-2010, 06:17 AM   #8
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,243

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Yes and its the solution, using usermod. I am not aware of a better command line solution.
 
  


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
Problem with usermod command pushpendra Linux - Desktop 3 05-27-2010 07:03 AM
usermod : command problem eboy98 Linux - Newbie 1 08-22-2008 01:21 PM
What is the correct print command in PAN newsreader? Stan44 Linux - Newbie 2 07-24-2007 07:23 AM
command usermod not found bowie101 Linux - Newbie 5 11-25-2005 06:38 AM
Correct Command, anyone? tomplate Linux - General 3 02-26-2002 09:39 PM


All times are GMT -5. The time now is 03:16 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