Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configured my Ubuntu server to allow login using Windows AD credentials. I have added enabled a domain group to login to ubuntu machine(by adding them in sudoer file)

#%mydomain\\domain^users ALL=(ALL) ALL

Now I want to remove the login access of these group members to the machine. I tried modifying sudoer(removed #%mydomain\\domain^users ALL=(ALL) ALL )

But still the users of that group is able to login.

How can I remove the access.

share|improve this question

To enable access to one group only to ubuntu run the below command

sudo lwconfig RequireMembershipOf "Domain\testusers"

the above command only allows testusers group to login to the machine.

In my case I am using likewise-open to enable admin access

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.