New Admin user in Kubuntu Karmic Koala

So the other day I was in IRC and someone had brought up a problem where they created a new Administrative user, but didn’t have rights to use ‘sudo’.  Looked into the problem a little bit to figure out what was wrong, and it turns out that when you create a new user through the user manager (in kubuntu, anyways.  Haven’t tested in Gnome.) the user gets added to the adm group, however, a quick look at the sudoers file shows that it’s looking for users in the admin group to allow the use of sudo.  So, to solve the problem we do the following:

If you’re on the new admin user (which I’m assuming you are) use the following commands:

su [insert username of old account without brackets]

sudo usermod -G admin [username of new admin account without brackets]

exit

Then simply logout, and then log back in (not always necessary, but the easiest way to flush the permissions.)

su [insert username of old account without brackets]

Means we’re going to Switch User to the “old” admin account

sudo usermod -G admin [username of new admin account without brackets]

This simply adds the admin group to the secondary group list for the new user

exit

Pretty self explanatory

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>