Hi All, I have a situation where I want users in one group to use one set of rules for [homes] and another set of users in a different group to a different set of rules for [homes]. Is this possible (and how)? Many thanks. -T
On Tue, Jul 14, 2009 at 5:17 PM, Nick Pappin <npappin at latahfcu.org> wrote:> You could get creative with includes and make something unique about the > two groups of people. > > -- > W. Nick Pappin > > > On Tue, Jul 14, 2009 at 4:58 PM, Todd Chester <margoandtodd at gmail.com>wrote: > >> Hi All, >> >> I have a situation where I want users in one group to use one set of rules >> for [homes] and another set of users in a different group to a different >> set >> of rules for [homes]. Is this possible (and how)? >> >> Many thanks. >> -T >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> > >Hi Nick, I am not finding anything in "man smb.conf" for "includes". What do you mean? -T
Todd Chester wrote:> Hi All, > > I have a situation where I want users in one group to use one set of rules > for [homes] and another set of users in a different group to a different set > of rules for [homes]. Is this possible (and how)?Sure is possible. I do this at the school I work for so that staff and student homes get different settings. I did it by removing the entire "[homes]" section from the normal config, and creating 2 new files containing only this section. One is called "homes-staff.conf" and the other "homes-students.conf". Using the following line, I then include the correct one for the logged in user: include = /etc/samba/homes-%G.conf The %G is replaced by the primary group of the user who is connected. TB