473,320 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Remove A User From the specific Group In Linux

How can I remove a specific user from the group?
May 12 '20 #1
2 7068
It is easier than you think. Use the usermod command with root privileges. Following example will remove the user george from the root group.
$ sudo usermod -G root george
May 13 '20 #2
cetpainfotech
15 Byte
To remove a user from a specific group in Linux, you can use the "usermod" command with the option "-G" (remove the user from the specified group) and specify the group name.

Here's the basic syntax:

sudo usermod -G <group-name> <username>
For example, to remove the user "john" from the group "admin", you can run the following command:

sudo usermod -G admin john
Note: You will need superuser (root) privileges to execute this command.
Feb 1 '23 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Brian Quinlan | last post by:
This meeting: ============= The long-awaited, many times delayed talk by our own Andy McKay: what is Plone and why is it taking over the world? Afterwards we'll retire to a nearby pub for the...
3
by: S. Lemen | last post by:
Hi, The CommitChanges method returns an error after earlier property ..Remove methods are successfull. The error is: "The attribute syntax specified to the directory service is invalid." ...
1
by: Joseph | last post by:
I recently tried to email a mail alias I found for a Portland, OR DB2 user's group, and received no response. I am wondering if there is an active group in Portland, or if not, if there is...
2
by: Kevin Wen | last post by:
Hi Sirs, How could i determine if an user belongs to a specific group, especially nested group. thanks, -Kevin
2
by: satyaprakash47 | last post by:
Hello How can we remove a specific file from the window recent file list through vb.Net.
1
by: easterbell | last post by:
Hi, My name is Easter. I am a software developer. I am working on an application in ASP.NET using C#. I am still kind of new to C# because I have been working with my company for about 2 months....
1
by: RuthC | last post by:
I am using vbulletin 3.7. and I logged in as administrator, I want to see all the thread posted in forum and also remove a specific thread(both subscribed and unsubscribed) pls help me.
4
by: Mike MacCana | last post by:
Hi folks, What's the proper way to query the passwd and group database on a Unix host? I'd like to fetch the users in a group (obviously from name services), but my many varied searches can't...
5
by: Max2006 | last post by:
Hi, I am trying to limit my wcf service endpoint to response to only given windows user or group. How can I do that? Is there any way to configure that in the .config file? Thank you, Max
1
by: Anbu123789 | last post by:
I user identity application from which I want to create User, create Group, Delete User, Delete Group and Reset Password in OpenLDAP through C# code. Please reply
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.