Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
54
rated 0 times [  54] [ 0]  / answers: 1 / hits: 236043  / 2 Years ago, sat, march 19, 2022, 2:45:03

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.


More From » sudo

 Answers
6

If you're like me, you are just trying to figure out how to take away sudo access from a user. It's easy, just open sudo, and type the following in. Keep in mind that USERNAME can be replaced by the profile you are doing this to.
In terminal type:



sudo deluser USERNAME sudo


This will only take sudo access away from the profile named USERNAME, and will not delete!


[#29821] Saturday, March 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heathree

Total Points: 157
Total Questions: 132
Total Answers: 108

Location: Honduras
Member since Mon, Apr 5, 2021
3 Years ago
;