I'm sharing an external harddisk over SMB/CIFS using Samba (Debian 6, Squeeze).
In order to properly set the access permissions, I'd rather create a subfolder - but now I have to mount it somewhere else and then symlink from where I want to actually access it.
(Haven't found a better way to do that, yet)
The problem now is, that I can't access the symlinked folder over Samba.
The logs in "/var/log/samba/log.CLIENT_IP" say:
Although I've enabled "follow symlinks = yes" in smb.conf for that share.check_reduced_name: Bad access attempt: video is a symlink outside the share path
[SOLUTION]
For security reasons, the option "wide links", used for following symbolic links outside the shared path is disabled. Just enabling them won't do the trick, since "unix extensions" must be disabled, since it's mutually exclusive.
If you know what you're doing, you can enable symlinks by making sure your smb.conf contains the following options:
Code: Select all
[global]
unix extensions = no
...
[share_name]
follow symlinks = yes
wide links = yes