Permissions issue with symlinks over samba
I'm having trouble accessing some files over a samba share. Here's my setup:
- I have shared
/shared
asShared
- I have a user with the same name and pwd as my Linux user in my Windows machine
- I made that user a member of the
debian-transmission
group - There's a symlink called
/shared/Downloads/Torrents
that points to/var/lib/transmission-daemon/downloads
- That folder is owned by
debian-transmission:debian-transmission
and its permissions are4775
(as created by the package)
I need to be able to read and move files from/to /shared/Downloads/Torrents from my Windows box.
Right now, I'm able to do that locally, but I get an access denied error when trying to read the Downloads
folder.
From a comment on the previous answer from user charlesbridge (and from the smb.conf docs/manpages), accessing links outside of the share root requires enabling the wide links
parameter, which requires both follow symlinks = yes
and unix extensions = no
. You must ensure your smb.conf has the following settings (explicitly or implicitly):
follow symlinks = yes
wide links = yes
unix extensions = no
Have you enabled wide symlinks in the configuration for your share in smb.conf?
follow symlinks=yes
wide links = yes
Wide links at least is off by default as it might be exploited.