Delete User in /etc/group
i have tor install on my raspberry.
*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi
over can i add a user
sudo usermod -a -G debian-tor bitcoin
but how can i delete?
i wan't root and pi delete.
linux raspberry-pi tor
add a comment |
i have tor install on my raspberry.
*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi
over can i add a user
sudo usermod -a -G debian-tor bitcoin
but how can i delete?
i wan't root and pi delete.
linux raspberry-pi tor
Welcome on U&L! Do you want to removeroot
andpi
from the groupdebian-tor
? Or are you trying to remove some users from your system?
– fra-san
Dec 10 at 12:05
Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12
add a comment |
i have tor install on my raspberry.
*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi
over can i add a user
sudo usermod -a -G debian-tor bitcoin
but how can i delete?
i wan't root and pi delete.
linux raspberry-pi tor
i have tor install on my raspberry.
*:/home/bitcoin $ cat /etc/group | grep debian-tor
debian-tor:x:116:bitcoin,root,pi
over can i add a user
sudo usermod -a -G debian-tor bitcoin
but how can i delete?
i wan't root and pi delete.
linux raspberry-pi tor
linux raspberry-pi tor
edited Dec 10 at 20:24
Rui F Ribeiro
38.8k1479128
38.8k1479128
asked Dec 10 at 11:50
Raylan Nachti
31
31
Welcome on U&L! Do you want to removeroot
andpi
from the groupdebian-tor
? Or are you trying to remove some users from your system?
– fra-san
Dec 10 at 12:05
Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12
add a comment |
Welcome on U&L! Do you want to removeroot
andpi
from the groupdebian-tor
? Or are you trying to remove some users from your system?
– fra-san
Dec 10 at 12:05
Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12
Welcome on U&L! Do you want to remove
root
and pi
from the group debian-tor
? Or are you trying to remove some users from your system?– fra-san
Dec 10 at 12:05
Welcome on U&L! Do you want to remove
root
and pi
from the group debian-tor
? Or are you trying to remove some users from your system?– fra-san
Dec 10 at 12:05
Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12
Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12
add a comment |
2 Answers
2
active
oldest
votes
Use gpasswd
instead.
gpasswd -d user group
It also has option for adding user to group
gpasswd -a user group
Thanks, with -d i have the user deleted. Have a nice day :)
– Raylan Nachti
Dec 10 at 12:16
add a comment |
Run usermod -G
(note: without -a
) for each of those users with a list of the groups s/he must stay member of. man usermod
:
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
If the user is currently a member of a group which is not listed, the user will be removed from the group.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487096%2fdelete-user-in-etc-group%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use gpasswd
instead.
gpasswd -d user group
It also has option for adding user to group
gpasswd -a user group
Thanks, with -d i have the user deleted. Have a nice day :)
– Raylan Nachti
Dec 10 at 12:16
add a comment |
Use gpasswd
instead.
gpasswd -d user group
It also has option for adding user to group
gpasswd -a user group
Thanks, with -d i have the user deleted. Have a nice day :)
– Raylan Nachti
Dec 10 at 12:16
add a comment |
Use gpasswd
instead.
gpasswd -d user group
It also has option for adding user to group
gpasswd -a user group
Use gpasswd
instead.
gpasswd -d user group
It also has option for adding user to group
gpasswd -a user group
answered Dec 10 at 12:08
Alexander
1,106213
1,106213
Thanks, with -d i have the user deleted. Have a nice day :)
– Raylan Nachti
Dec 10 at 12:16
add a comment |
Thanks, with -d i have the user deleted. Have a nice day :)
– Raylan Nachti
Dec 10 at 12:16
Thanks, with -d i have the user deleted. Have a nice day :)
– Raylan Nachti
Dec 10 at 12:16
Thanks, with -d i have the user deleted. Have a nice day :)
– Raylan Nachti
Dec 10 at 12:16
add a comment |
Run usermod -G
(note: without -a
) for each of those users with a list of the groups s/he must stay member of. man usermod
:
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
If the user is currently a member of a group which is not listed, the user will be removed from the group.
add a comment |
Run usermod -G
(note: without -a
) for each of those users with a list of the groups s/he must stay member of. man usermod
:
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
If the user is currently a member of a group which is not listed, the user will be removed from the group.
add a comment |
Run usermod -G
(note: without -a
) for each of those users with a list of the groups s/he must stay member of. man usermod
:
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
If the user is currently a member of a group which is not listed, the user will be removed from the group.
Run usermod -G
(note: without -a
) for each of those users with a list of the groups s/he must stay member of. man usermod
:
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
If the user is currently a member of a group which is not listed, the user will be removed from the group.
answered Dec 10 at 12:06
RudiC
3,9641312
3,9641312
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487096%2fdelete-user-in-etc-group%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome on U&L! Do you want to remove
root
andpi
from the groupdebian-tor
? Or are you trying to remove some users from your system?– fra-san
Dec 10 at 12:05
Thanks. Yes i want to remove root and pi from the group: debian-tor.
– Raylan Nachti
Dec 10 at 12:12