PDA

View Full Version : [ubuntu] Likewise, Active Directory groups, and sudoers


cebesius
April 25th, 2008, 11:03 AM
I have a UnixAdmins group on my Active Directory domain, and joined my Hardy Heron server to AD using Likewise using these instructions (http://anothersysadmin.wordpress.com/2008/04/06/howto-active-directory-authentication-in-ubuntu-804/). Here is the last line of my /etc/sudoers file:

%UnixAdmins ALL=(ALL) ALL

Here is a screenshot (http://img125.imageshack.us/img125/7771/likewiseem0.png) of what happens when I log in as a member of UnixAdmins AD group and try to use sudo.

Have I missed something?

Many thanks!

dendrobates
April 27th, 2008, 11:22 AM
when logged in as the user, do the following command to list the groups you belong to:

id

cebesius
April 27th, 2008, 11:33 AM
when logged in as the user, do the following command to list the groups you belong to:

MORRISVILLE\cbw@lisa:~$ id
(trimmed other group memberships before posting to forum)
82324846(MORRISVILLE\unixadmins)

I added the below to my /etc/sudoers file:
%MORRISVILLE\unixadmins ALL=(ALL) ALL

Unfortunately this did not work, so I did some more searching. Turns out I need to properly escape the backslash character in order for it to work. I made the change, and the below setting made it work:
%MORRISVILLE\\unixadmins ALL=(ALL) ALL

Thanks!