[SOLVED]Whats the opposite of su -c 'gpasswd -a USER sudo' ?

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
debian121212
Posts: 80
Joined: 2019-01-03 01:34

[SOLVED]Whats the opposite of su -c 'gpasswd -a USER sudo' ?

#1 Post by debian121212 »

Ran accross the command

Code: Select all

su -c 'gpasswd -a USER sudo'
as per http://forums.debian.net/viewtopic.php?f=17&t=122335

How do I do the opposite of that command in terminal? Want to remove USER from sudo group in debian 10.

Cant use https://askubuntu.com/questions/335987/ ... g-the-user

because I cant use the sudo command.

SOLUTION
Snooping around and found

Code: Select all

su -c 'gpasswd -d USER sudo'

User avatar
phenest
Posts: 1704
Joined: 2010-03-09 09:38
Location: The Matrix

Re: [SOLVED]Whats the opposite of su -c 'gpasswd -a USER sud

#2 Post by phenest »

For future reference, try the man pages:

Code: Select all

man gpasswd
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

Post Reply