[Samba] Using group membership to access a symlink directory

John H Terpstra jht at samba.org
Mon Nov 14 14:53:39 GMT 2005


On Thursday 10 November 2005 15:56, Chris Barnes wrote:
> I am having a problem getting Samba to use the linux group membership
> when following a symlink.
>
> On the Linux side, I have a soft link from the user's home directory to
> the shared directory.
>   ln -s /home/shared/testgroup testshare
>
> In the smb.conf I have:
> [homes]
>    comment = Home Directories
>    browseable = no
>    writable = yes
>    valid users = %S
>    force create mode = 0660
>    delete readonly = yes
>    map archive = no
>    case sensitive = yes
>    follow symlinks = yes
>
> [testshared]
>     comment = Test Shared
>     browsable = no
>     path = /home/shared/testgroup
>     valid users = @test
>     writable = yes
>     force create mode = 0660
>     force directory mode = 0771
>     force group = test
>
>
> IF the user maps to the "testshared" share, it works perfectly (ie. uses
> the group membership to give access).  However, if they try to browse to
> the testgroup "directory", it does not grant them access.
>
> It shouldn't matter, but I have even changed the symlink 'file' to have
> the user be the owner.  Still no dice.

Check the man page for the "wide links" parameter.

- John T.


More information about the samba mailing list