I want to grant a newly created user
sudo privileges in Ubuntu.
sudo adduser hduser admin
but it says no admin group exists. How can I do it?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
1) Become root. You can do this using
sudo -i or becoming root the old fashioned way
3) I changed this portion of the sudoers file to have my chosen users become sudo users, and you can add users similarly (blank lines introduce to format cleanly):
## User Aliases ## These aren't often necessary, as you can use regular groups ## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname ## rather than USERALIAS # User_Alias ADMINS = jsmith, mikem dbadmin ALL=(ALL) ALL ics ALL=(ALL) ALL csm ALL=(ALL) ALL coa ALL=(ALL) ALL
: and x to write the changes to sudoers and exit vi.