Page 1 of 1

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

Posted: 2019-08-15 02:46
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'

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

Posted: 2019-08-15 14:39
by phenest
For future reference, try the man pages:

Code: Select all

man gpasswd