LikeWise Open: Adding Domain Group to Sudoers File

So now that your cranking using LikeWise, you want to use it for all your admins and you need to give them access to sudo all.
Run visudo as normal:
sudo visudo
Then add a line at the bottom like so: (remember to press I to switch to edit mode so you can add this)
%DOMAIN\\linux^admins ALL=(ALL) ALL

When your done hit escape then type:

:wq

This will write the file out and exit visudo

Some things to note:

  • The % MUST be the first character on the line
  • Escape the slash between domain & user with a slash (double slash)
  • Use ^ in place of spaces
  • Obviously replace DOMAIN with your domain
  • If you have problems try dropping case on the group name

2 Responses

  1. Eneko Says:

    Thanks for that. I’m having a problem with Likewise that maybe you can help me with:

    I want to ‘chown’ some folder to a domain user but chown keeps telling me that the user doesn’t exist. Look:

    sudo chown -R [‘domain\user’,””] /folder
    chown: [domain\\user,]': invalid user
    sudo chown -R [domain\user,""] /folder
    chown:
    [domainuser,]’: invalid user

    So, it doesn’t matter what combination I choose for the command, I always get an ‘invalid user’ message. I just can’t, or don’t know, how to escape the combination correctly.

    By the way, for login I do ‘domain\username’, for example: su ‘domain\username’

    Thank you!
    Best.

  2. Michael Requeny Says:

    Eneko,

    I haven’t had to do this yet but I think this would do it:
    sudo chown -R domain\\user /folder

    If not perhaps this might work:
    sudo chown -R user@domain /folder

    Let me know if you figure it out

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.