[Samba] subdirectories with different permissions

Cleber P. de Souza cleberps at gmail.com
Fri Mar 2 17:33:22 GMT 2007


Yes.

The inside permissions can be specified using acl command setfacl for
the right group/person.
use getfacl to check the applied permissions.


On 3/1/07, Matt Ingram <mingram at cbnco.com> wrote:
> 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/
>
>


-- 
***
Cleber P. de Souza


More information about the samba mailing list