I want to configure Linux Samba 4.0.9 for providing read-only access to directory content (symlinks to files from other locations) in user & password less way. Basically any LAN user should have access to content without any user/pass questions. I have following smb.conf:

    load printers = no
    guest account = guest
    name resolve order = lmhosts host wins bcast
    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
    preserve case = yes
    obey pam restrictions = yes
    encrypt passwords = true
    passwd program = /usr/bin/passwd %u
    dns proxy = no
    printing = bsd
    server string = Home Server
    invalid users =
    unix password sync = false
    workgroup = Home-Server
    log level = 2
    syslog only = yes
    os level = 20
    printcap name = /dev/null
    disable spoolss = yes
    syslog = 2
    security = user
    map to guest = Bad User
    panic action = /usr/share/samba/panic-action %d
    short preserve case = yes
    max log size = 1000
    unix extensions = no
    interfaces = lo lan0
    bind interfaces only = yes
    follow symlinks = yes
    wide symlinks = yes

    comment = Myth Television
    available = yes
    browsable = yes
    public = yes
    writeable = no
    path = /myth/tv/pretty

    comment = Root FS
    path = /
    valid users = root
    force user = root
    force group = root
    admin users = root
    writeable = Yes

Above config gives me user/pass less access to [tv] - but attempt to access symlink gives me "Permission denied". Exactly the same symlink is working OK for [root] so I think issue is related to user/pass less access mode (where user/pass is bad and Samba is using 'map to guest = Bad User' directive). May somebody hint me about proper config? Thx in advance


In order to allow symbolic links, you need to use wide links directive, instead of wide symlinks. I think that wide symlinks may be a typo, because I can't find a reference to it in the man page.

wide links = yes


Edit: The version of SAMBA that my server is running is 3.6.3.

| improve this answer | |

Well - it looks like I have old option name in smb.conf: instead of "wide symlinks = yes" there should be "wide links = yes". Now it works.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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