[Samba] subdirectories with different permissions

Matt Ingram mingram at cbnco.com
Thu Mar 1 21:14:30 GMT 2007


how would I configure the samba share? 

[colours]
        comment = colours
        path = /over/there
        valid users = @group1 @group2

and then the file system takes care of the r/w perms and forcing the 
proper group ?


Thanks,

Matt.

Cleber P. de Souza wrote:
> You can accomplish this using ACL on the filesystem and setting up the
> properly permissions on these directories.
>
>
> On 3/1/07, Matt Ingram <mingram at cbnco.com> wrote:
>> Several users keep asking for a similar setup, and I'm wondering if
>> there's a way to achieve it with a single samba share.
>>
>>
>> They'll ask for a single share drive the has multiple subdirectories
>> with each subdirectory having different permissions based on groups.
>>
>> So say you have a share called COLOURS and inside that share are three
>> subdirectories, RED, GREEN and BLUE.
>>
>> Group1 should have RW access to everything, and Group2 should have RW to
>> RED, Read-only to GREEN and no access to BLUE.
>>
>>
>> I typically will just create three shares for them (RED, GREEN and BLUE)
>> and provide access accordingly - as I don't think there's another way.
>> If there's a way to achieve this, please let me know.
>>
>> Thanks,
>>
>> Matt.
>>
>> -- 
>> Matt Ingram
>> Intermediate Unix Administrator, IS
>> Canadian Bank Note Company, Limited
>> \m/
>>
>> -- 
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/listinfo/samba
>>
>
>

-- 
Matt Ingram
Intermediate Unix Administrator, IS
Canadian Bank Note Company, Limited
\m/



More information about the samba mailing list