Linda Walsh wrote:
` Lars M����������������������� wrote:
On Mon, Aug 22, 2011 at 11:33:51AM -0400, James Knott wrote:
I've recently set up a server running openSUSE 11.4. I have set up some common file areas in the /srv partition, which I link to from user directories. If I use WinSCP to access the user accounts, I can follow the symlinks to /srv. However, if I use Samba, I get an error that files on /srv are not accessible and it might be due to permissions. I have tried the "follow symlinks" and "wide links" options in smb.conf, but still no luck. Any ideas?
You know http://www.samba.org/samba/news/symlink_attack.html ?
BUT (yes, by intention all uppercase) this is only valid for Samba post-3.6.0pre2. As you state to use oS 11.4 I expect you're using the version included with the release, which was 3.5.7.
No...THEY backported the fix into the 3.5 (I know for sure, as I got hit by the fix twice),, and into earlier supported versions (AFAIK, but not certain).
The first hit was when it happened, -- patched my code, as it wasn't a real bug in my setup.
2nd, time -- when I upgraded from 11.2->11.4, I got the new version 3.5.7, which had the broken functionality again.
Rather than just patching my code, I submitted a fix for this against the samba base tree: https://bugzilla.samba.org/show_bug.cgi?id=8229 I also asked that it be included (it applies w/an offset, into the 3.5 series, but was too late to catch 3.5.11).
Nothing else has happened on it.
If this patch is of interest to you, you might ask when they expect to include it?
OR , it's in an attachment to the bug... and you can apply the patch... (or If that doesn't work I can email private or post the patch here...it's fairly short and undoes the damage that that ill-considered 'fix' did to wide-link usability; even if it was 'scary' to some people).
The installed version is samba-3.5.7-1.17.1.x86_64. While I can work around this, it would be nice to have it work properly. As I mentioned, it's a server at work. Some of the employees will be accessing it while on the road via WinSCP, with links from their home directories to some common areas. WinSCP has no problem with the links. However, when in the office, they'll be using regular LAN shares instead of WinSCP. This is where it breaks, when Samba won't follow the links. I have also shared the /srv parition, so they can get in that way, but then it's inconsistent with the way they work when outside. They're not all computer geniuses, so this point may trip up some of them. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org