Add AD Domain user to sudoers from the command line

Posted by Wyatt Barnett on Ask Ubuntu See other posts from Ask Ubuntu or by Wyatt Barnett
Published on 2011-09-30T18:09:04Z Indexed on 2012/06/07 10:48 UTC
Read the original article Hit count: 443

Filed under:
|
|

I'm setting up an Ubuntu 11.04 server VM for use as a database server. It would make everyone's lives easier if we could have folks login using windows credentials and perhaps even make the machine work with the current AD-driven security we've got elsewhere.

The first leg of this was really easy to accomplish -- apt-get install likewise-open and I was pretty much in business. The problem I'm having is getting our admins into the sudoers groups -- I can't seem to get anything to take. I've tried:

a) usermod -aG sudoers [username]
b) adding the user names in several formats (DOMAIN\user, user@domain) to the sudoers file.

None of which seemed to take, I still get told "DOMAIN\user is not in the sudoers file. This incident will be reported."

So, how do I add non-local users to the sudoers?

© Ask Ubuntu or respective owner

Related posts about sudo

Related posts about active-directory