Results 1 to 4 of 4

Thread: Likewise, Active Directory groups, and sudoers

  1. #1
    Join Date
    Aug 2006
    Location
    North Carolina, USA
    Beans
    15
    Distro
    Ubuntu 10.10 Maverick Meerkat

    [SOLVED] Likewise, Active Directory groups, and sudoers

    I have a UnixAdmins group on my Active Directory domain, and joined my Hardy Heron server to AD using Likewise using these instructions. Here is the last line of my /etc/sudoers file:

    Code:
    %UnixAdmins ALL=(ALL) ALL
    Here is a screenshot 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!
    Attached Images Attached Images
    Last edited by cebesius; April 27th, 2008 at 04:34 PM. Reason: Mark thread as solved

  2. #2
    Join Date
    Jun 2007
    Location
    St Charles, MO
    Beans
    34

    Re: Likewise, Active Directory groups, and sudoers

    when logged in as the user, do the following command to list the groups you belong to:

    id

  3. #3
    Join Date
    Aug 2006
    Location
    North Carolina, USA
    Beans
    15
    Distro
    Ubuntu 10.10 Maverick Meerkat

    [SOLVED] Re: Likewise, Active Directory groups, and sudoers

    Quote Originally Posted by dendrobates View Post
    when logged in as the user, do the following command to list the groups you belong to:
    Code:
    MORRISVILLE\cbw@lisa:~$ id
    (trimmed other group memberships before posting to forum)
    82324846(MORRISVILLE\unixadmins)
    I added the below to my /etc/sudoers file:
    Code:
    %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:
    Code:
    %MORRISVILLE\\unixadmins ALL=(ALL) ALL
    Thanks!

  4. #4

    Smile Re: Likewise, Active Directory groups, and sudoers

    Hi,

    Am trying to accompany same, but seems to be not working.

    I have joined Ubuntu 12.0 to Windows 2008 AD using likewise-open, am able to query using lw-find as mentioned below

    /usr/bin$ lw-find-user-by-name AB\\rajesh
    User info (Level-0):
    ====================
    Name: AB\\rajesh
    SID: S-1-5-21-1757981266-1606980848-1957994488-14886
    Uid: 1236285990
    Gid: 1236271617
    Gecos: Rajesh
    Shell: /bin/bash
    Home dir: /home/likewise-open/AB/Rajesh
    Logon restriction: NO


    Here is my Sudoer file

    # User privilege specification
    root ALL=(ALL:ALL) ALL
    %AB\\Rajesh ALL=(ALL:ALL) ALL

    When i tried to make any installation i get error as user is not in sudoer list

    /usr/bin$ sudo apt-get install systat
    [sudo] password for AB\Rajesh:
    AB\Rajesh is not in the sudoers file. This incident will be reported

    Likewise-open version : 6.1.0.406-0ubuntu3

    Any help will be appreciated.


    Thank You
    :Bharathvn:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •