How to remove a user from the sudo group?

QuestionsQuestions8 SkillsProUser Account ManagementOct, 13 2025
0135

To remove a user from the sudo group, you can use the following command:

sudo deluser username sudo

Replace username with the actual username of the user you want to remove from the sudo group.

Steps:

  1. Open a terminal.
  2. Run the command above with the appropriate username.
  3. To verify that the user has been removed from the sudo group, you can check their groups with:
groups username

You should no longer see sudo listed among the user's groups.

0 Comments

no data
Be the first to share your comment!