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 10-07-2014, 06:43 PM   #1
ohayon
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Rep: Reputation: Disabled
gpasswd command


it may be a stupid question, but i am new to linux, i have grant Administration permission of a group to a user with the command: gpasswd -A username group , everything works fine, i am now want to remove this user from being the administrator of this group, how can i do that?

thanks.
 
Old 10-07-2014, 06:55 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
man pages are your friend:

Code:
man gpasswd # Find the option you need to use
gpasswd -d username
 
Old 10-07-2014, 07:06 PM   #3
ohayon
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yes, but the command gpasswd -d username group , just remove the user from being a member of this group. i want to remove the user from being able to administer this group, to prevent him from adding/deleting members of the group.

Last edited by ohayon; 10-07-2014 at 07:07 PM.
 
Old 10-08-2014, 08:02 AM   #4
ohayon
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Someone?
 
Old 10-08-2014, 08:34 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Quote:
Originally Posted by ohayon View Post
Yes, but the command gpasswd -d username group , just remove the user from being a member of this group. i want to remove the user from being able to administer this group, to prevent him from adding/deleting members of the group.
Either delete by hand the user from /etc/gshadow, or use:
Code:
gpasswd -A "" groupname
Cheers
 
1 members found this post helpful.
Old 10-08-2014, 09:01 AM   #6
ohayon
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks bathory.
 
  


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
Command gpasswd on OpenSUSE to delete user from group. vickyk Linux - Newbie 2 01-06-2012 12:52 PM
RHEL6 - gpasswd - newgrp Amethyst Red Hat 1 03-08-2011 11:46 AM
newgrp and gpasswd problems sysslack Slackware 4 07-28-2010 05:48 PM
"gpasswd -R" vs "gpasswd -r": what is the difference? Neavirc Linux - Newbie 1 06-24-2008 07:22 PM
strong gpasswd cachemonet Linux - Security 1 07-26-2006 02:45 PM


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

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