Results 1 to 3 of 3

Thread: samba share cannot access symbolic links to other drives

  1. #1
    Join Date
    Dec 2010
    Beans
    6

    samba share cannot access symbolic links to other drives

    I've created two samba shares, /media/disk1 and /media/disk2
    say the structure is like this:
    /media/disk1/dir1
    /media/disk1/dir2 links to /media/disk1/dir1
    /media/disk2/dir1 links to /media/disk1/dir1

    so I can access /media/disk1/dir1 and /media/disk1/dir2 from samba share, but I cannot access /media/disk2/dir1, on Windows 7 it throws:
    [Window Title]
    Location is not available

    [Content]
    N:\dir1 is not accessible.

    Access is denied.


    [OK]
    In conclusion, symbolic inside the same drive is okay, but when cross-drive links happened, I cannot access them..
    Is there anything I have missing or done wrongly? Thanks.
    Last edited by qip; January 10th, 2011 at 07:03 AM.

  2. #2
    Join Date
    Oct 2009
    Location
    Tucson, AZ
    Beans
    782
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: samba share cannot access symbolic links to other drives

    You need to set
    Code:
    follow symlinks = yes
    wide links = yes
    for the share in smb.conf for Samba to follow symlinks out of the file share.

    ETA: You will also need to add:
    Code:
    unix extensions = no
    to your [global] sections for security reasons. For more information, see http://www.ubuntu.com/usn/usn-918-1
    Last edited by PatchesTheCaveman; January 10th, 2011 at 09:26 AM.

  3. #3
    Join Date
    Dec 2010
    Beans
    6

    Re: samba share cannot access symbolic links to other drives

    Thank you!
    Previously I did add the three command all into [global] and that is why it didn't work..
    Now I add the first 2 lines to each of the shares and it works fine.
    Again, thank you for the time

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •