[Samba] group access to a share

Adam Williams awilliam at mdah.state.ms.us
Tue Jul 7 15:42:19 GMT 2009


here is what I use for a share:

[finance]
        path = /samba/finance
        force directory mode = 0777
        browseable = Yes
        create mask = 0777
        force create mode = 0777
        directory mask = 0777
        writeable = Yes
        force group = @ADMIN\finance
        inherit permissions = yes
        valid users = @finance
        write list = @ADMIN\finance
        csc policy = disable
        nt acl support = no
        force security mode = 777
        msdfs root = yes


Gabriel Petrescu wrote:
> HI!
>
> I managed to add a samaba to a AD.
>
> Now I want as a share to be accesible only to marketing guys.
>
> I made added the following lines in smb.conf and restarted.
>
> [MarketingFiles]
>     path = /var/www/mywebsite/
>     read only = no
>     create mask = 0777
>     directory mask = 0777
> valid users=@marketing
> writable = yes
> public=yes
> browseable=yes
>
>
> I checked using my user which is part of administrators group, and
> administrators group is part of marketing group.
>
> Theoretically should work , but it seems I made a mistake.
>
> Can you help me ?
>
> Thank you:)
>
> Gabi
>   



More information about the samba mailing list