Add active directory user to linux group upon sign-in

tubaguy50035 asked:

I have Active Directory sign in working on an Ubuntu 12.04 box. When an active directory user signs in, I would like to add them to the group sambasharers. Where and how would I add this declaration?

I guess I should add that I am using Samba and winbind for authentication.

My answer:

Simple and probably not scalable solution:

Assuming you’ve already set up your Linux box to authenticate to Active Directory, then you just add each user who should be in the group to the sambasharers group on the UNIX Attributes tab in Active Directory Users and Groups. If you don’t see the UNIX Attributes tab, see this Microsoft KB article.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.