NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
MichaelH1
Oct 28, 2014Aspirant
Update to 4.2.27 has disabled symbolic links in shares?
G'day all,
So, I've be using my ReadyNAS Ultra 6 for quite some time and have it all set up the way I want. I make use of symbolic links inside my shares so that there is often more than one way to get to a particular folder. (eg. I have two shares, "data" and "media", but I have a symbolic link inside "data" so I can also the "media" share as either "\\ReadyNAS\media" or "\\ReadyNAS\data\media".)
This is all done for RSync and other purposes. To get this working I did have to manually edit my /etc/samba/smb.conf file and enable the options:
in the [Global] section. But after doing that this has been working flawlessly for months.
However, I just updated to 4.2.27 (seemed best to not avoid this update, what with ShellShock out there) and it appears this has disabled this feature in Samba. (I know Samba is one of the bits updated in the 4.2.27 update.)
I've examined the /etc/samba/smb.conf file and my changes are still there. I've tried adding those options to the [data] section in my /etc/frontview/samba/Shares.conf file, but that file appears to get overwritten on reboot so does no good.
Does anybody have any tips on what other files might need adjusting for Samba to start following symbolic links again?
Cheers,
Michael
So, I've be using my ReadyNAS Ultra 6 for quite some time and have it all set up the way I want. I make use of symbolic links inside my shares so that there is often more than one way to get to a particular folder. (eg. I have two shares, "data" and "media", but I have a symbolic link inside "data" so I can also the "media" share as either "\\ReadyNAS\media" or "\\ReadyNAS\data\media".)
This is all done for RSync and other purposes. To get this working I did have to manually edit my /etc/samba/smb.conf file and enable the options:
follow symlinks = yes
wide links = yes
in the [Global] section. But after doing that this has been working flawlessly for months.
However, I just updated to 4.2.27 (seemed best to not avoid this update, what with ShellShock out there) and it appears this has disabled this feature in Samba. (I know Samba is one of the bits updated in the 4.2.27 update.)
I've examined the /etc/samba/smb.conf file and my changes are still there. I've tried adding those options to the [data] section in my /etc/frontview/samba/Shares.conf file, but that file appears to get overwritten on reboot so does no good.
Does anybody have any tips on what other files might need adjusting for Samba to start following symbolic links again?
Cheers,
Michael
3 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredThe change to disable wide links by default was made for security reasons. See http://www.samba.org/samba/news/symlink_attack.html
What does your /var/log/frontview/initrd.log look like? - SkywalkerNETGEAR ExpertYou'll probably need to enable "allow insecure wide links" as well.
- MichaelH1AspirantThat appears to have fixed it! I added "unix extensions = yes" as well, just in case, rebooted, and things appear to be back to working how they were.
So, for anybody else having this issue, make sure you have the options:follow symlinks = yes
wide links = yes
allow insecure wide links = yes
unix extensions = yes
added to the [global] section of your /etc/samba/smb.conf file.
Thanks and cheers,
Michael
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!