Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This is Ubuntu server 10.04 64 and samba 3.4.7.

I have a shared directory /home/mit/share and another one /home/temp that I link into the shared one:

ln -s /home/temp /home/mit/share/temp

But on windows, after using internet, I cannot open S:/temp, but on Linux it is possible to access /home/mit/share/temp like expected.

This works if I link directories inside /home/mit/share/temp, so I guess samba is restricting to jump with a link outside/above the shared directory.

EDIT:

See also this question titled Ubuntu + latest samba version, symlinks no longer work on share mounted in Windows.

It seems best to put unix extensions = no into the global section and follow symlinks = yes and wide links = yes only into the shares section, where you really need it.

The unix extension flag has to live in the global section and not in the individual shares sections. But for security reasons it is better to use the other options only where you need it, and not globally.

share|improve this question
    
Can you try a hardlink instead of a symlink? –  Falmarri Jan 3 '11 at 3:54

2 Answers 2

up vote 2 down vote accepted

Edit smb.conf

[global]
unix extensions = no

[share]
follow symlinks = yes
wide links = yes
share|improve this answer
    
See also the explanation at the end of the question above why this is a good solution. –  mit Jun 18 at 16:44

Greetings, I've tried putting this into configuration to fix symlinks for windows for my setup , but I am not sure if it will affect windows client, otherwise it follows symlinks when I connect to this box.

[global]                                                                        
unix extensions = no
share|improve this answer
    
Qiqi's answer agrees with this one: superuser.com/questions/128716/… –  Janus Jan 3 '11 at 4:49
    
Yes, this definitely fixes the issue in my environment. –  TML Jul 28 '11 at 16:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.