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 net use'ing I cannot open S:/temp, 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. I thought I could override this restriction with

        follow symlinks = yes
        wide links = yes

This is my smb.conf:

[global]
        workgroup = W11
        security = SHARE
        passdb backend = smbpasswd:/etc/samba/smbpasswd
        unix password sync = no
        #username map = /etc/samba/user.map
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        encrypt passwords = true
        invalid users = root
        hosts allow = 10.1.1.0/24

[s]
        comment = S
        follow symlinks = yes
        wide links = yes
        path = /home/mit/share
        valid users = mit
        read only = no
        create mask = 0660
share|improve this question
    
Can you try a hardlink instead of a symlink? –  Falmarri Jan 3 '11 at 3:54
add comment

1 Answer

up vote 5 down vote accepted

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
add comment

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.