Re: [Samba] two rules for [homes]?

2009-07-15 Thread Helmut Hullen
Hallo, Todd,

Du meintest am 14.07.09:

 You could get creative with includes and make something unique about
 the two groups of people.

[...]

 I am not finding anything in man smb.conf for includes.  What do
 you mean?


   include = /path/to/include1.txt

   include = /path/to/u%-special.txt

as examples.

And if that special file doesn't exist samba doesn't mourn.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] two rules for [homes]?

2009-07-14 Thread Todd Chester
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


Re: [Samba] two rules for [homes]?

2009-07-14 Thread Todd Chester
On Tue, Jul 14, 2009 at 5:17 PM, Nick Pappin npap...@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 margoandt...@gmail.comwrote:

 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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] two rules for [homes]?

2009-07-14 Thread Tim Bates

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
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba