To remove a user from the sudo group, you can use the deluser command. Here’s the syntax:
sudo deluser username sudo
Replace username with the actual name of the user you want to remove from the sudo group. For example, to remove a user named jack, you would run:
sudo deluser jack sudo
After executing this command, the user will no longer have sudo privileges.
