If you give a user sudo privileges how can I remove the sudo privileges and make the user become just a regular user?

I used:

sudo adduser username sudo

Now I've changed my mind.

share|improve this question
1  
Take a read through this: askubuntu.com/questions/45035/… – Erresen Aug 22 '13 at 19:50
up vote 57 down vote accepted

Just type

sudo deluser username sudo

This will remove the user named username from the group sudo.

Be careful not to remove the real adminuser from the sudo group.

share|improve this answer

You can also use gpasswd:

sudo gpasswd -d username sudo

This will remove username from group sudo.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.