How to revoke sudo access?

QuestionsQuestions8 SkillsProUser Account ManagementSep, 17 2025
0124

To revoke sudo access from a user, you can remove them from the sudo group. Here’s how to do it:

  1. Open a terminal.

  2. Use the following command to remove the user (replace username with the actual username) from the sudo group:

    sudo deluser username sudo
  3. To verify that the user has been removed from the sudo group, you can check the groups associated with the user:

    groups username

The output should no longer include the sudo group, indicating that the user no longer has sudo access.

0 Comments

no data
Be the first to share your comment!