Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.