Changeset 2298


Ignore:
Timestamp:
Jun 26, 2013, 10:59:00 AM (5 years ago)
Author:
matthijs
Message:

samba3: Fix the Media share

In r2236, the "wide links" configuration parameter was set to "no", to
disallow symlinks on a device to point outside of the USB disk itself.

However, the "Media" share contains symlinks to each of the mounted
disks, which no also stopped working.

This commit adds a patch to samba to allow adding an exception to this
wide links restriction: One additional path (per share) into which
symlinks can be pointed.

This exception is set to /tmp/run/mountd/ so symlinks can point to all
mounted disks. This has the side-effect of also allowing symlinks from
one USB disk to another (but only when accessed through the Media
share), but this shouldn't really be a problem.

Closes: #1243

Location:
trunk/fon/samba3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/samba3/files/etc/fonstated/ReloadSamba

    r2236 r2298  
    7474                f:write("\tforce user = root\n")
    7575                f:write("\twide links = no\n")
     76                f:write("\twide links exception = /tmp/run/mountd/\n")
    7677                f:close()
    7778        end
  • trunk/fon/samba3/files/etc/fonstated/RestartSamba

    r2236 r2298  
    7575                f:write("\tforce user = root\n")
    7676                f:write("\twide links = no\n")
     77                f:write("\twide links exception = /tmp/run/mountd/\n")
    7778                f:close()
    7879        end
Note: See TracChangeset for help on using the changeset viewer.