Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
240
rated 0 times [  240] [ 0]  / answers: 1 / hits: 830982  / 3 Years ago, fri, september 17, 2021, 11:32:30

I want to grant a newly created user sudo privileges in Ubuntu.



I tried



sudo adduser hduser admin


but it says no admin group exists.
How can I do it?


More From » sudo

 Answers
2

You need to add the user hduser to the sudo group (which is the "administrators" group in Ubuntu).



If you have already created the user, you can add the user to the sudo group by running the following command in a Terminal:



sudo usermod -a -G sudo hduser

[#36573] Sunday, September 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wherejuic

Total Points: 53
Total Questions: 123
Total Answers: 117

Location: Zambia
Member since Mon, Jan 23, 2023
1 Year ago
wherejuic questions
Thu, Aug 19, 21, 18:07, 3 Years ago
Wed, May 12, 21, 03:23, 3 Years ago
Sat, Nov 13, 21, 05:27, 3 Years ago
Mon, Sep 5, 22, 17:36, 2 Years ago
;