Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-06-2012, 08:35 AM   #1
Registered: Dec 2009
Posts: 38

Rep: Reputation: 6
Command gpasswd on OpenSUSE to delete user from group.


On CentOS we can delete a user from a group by command:

gpasswd -d [user] [group]
But the gpasswd on OpenSUSE has command gpasswd but no such option to delete a user from a group.

I am aware, this can be done by modifying /etc/groups and by checking the user with ID command and using usermod to add the user again without the group to be removed.

But I need a single command to perform the task. Is anyone aware of it ?
Old 01-06-2012, 11:05 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
In a terminal window, run "apropos group | grep user" without quotes. That will show you all command line tools relating to group and user. Search for the one that removes user from group.
Old 01-06-2012, 01:52 PM   #3
Senior Member
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
In OpenSuSE go to YasT and select users and group select the user you want to remove and choose delete.

Good luck to you.


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
How do I add user and group simultaneously in one command? Linux - Newbie 1 11-28-2011 02:35 AM
[SOLVED] How to delete a user from group? rammohantv Linux - Newbie 4 01-29-2010 01:21 AM
how to remove a user from secondary group using command line iamjayanth Red Hat 2 07-11-2009 12:12 AM
how to delete all files in one command for all user packets Linux - Newbie 4 04-16-2007 09:56 PM
delete a group with command line feetyouwell Linux - Software 1 01-27-2004 10:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 AM.

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