[Samba] Using group membership to access a symlink directory

Chris Barnes chris-barnes at tamu.edu
Mon Nov 14 14:38:18 GMT 2005


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.

--

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Chris Barnes                              AOL IM: CNBarnes
chris at txbarnes.com                      Yahoo IM: chrisnbarnes

You always have freedom of choice, but you never have freedom of
consequence.

--

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Chris Barnes                           AOL IM: CNBarnes
chris-barnes at tamu.edu                Yahoo IM: chrisnbarnes 





More information about the samba mailing list