To revoke sudo access from a user, you can remove them from the sudo group. Here’s how to do it:
Open a terminal.
Use the following command to remove the user (replace
usernamewith the actual username) from thesudogroup:sudo deluser username sudoTo verify that the user has been removed from the
sudogroup, 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.
