Ubuntu + latest samba version, symlinks no longer work on share mounted in windows

21,975

There was a recent security issue in Samba (Feb 5 2010), a claimed zero-day exploit that exploited an insecure default configuration. According to an Ubuntu Forums post on the topic, the "wide links" option now defaults to no.

Apparently the option's name was changed since those earlier instructions you found.

Adding this to the global section of your smb.conf file should fix the issue:

follow symlinks = yes
wide links = yes
unix extensions = no

After saving smb.conf, be sure you restart Samba:

sudo /etc/init.d/samba restart
Share:
21,975

Related videos on Youtube

Roy Rico
Author by

Roy Rico

general purpose geek

Updated on September 17, 2022

Comments

  • Roy Rico
    Roy Rico over 1 year

    I just apt-getted (apt-got?) the latest software for my Ubuntu 9.10 linux box, and I noticed that samba was the included in the update.

    After the install, the symlinks in my home directory no longer work when mounted as a drive in my linux box. They worked literally seconds before I did the update. All my normal directories work just fine. Viewing the directory listing on the command line, all the files, dirs & links have the exact same permissions, yet this is the error I get:

    Location is not available
    L:\LinkDir is not accessible.
    Access is denied.
    

    I looked on the forums, and i saw this option for the smb.conf

    follow symlinks = yes
    wide symlinks = yes
    unix extensions = no
    

    I put those in, but they had no effect. Has anyone had this problem yet?

  • Matthew
    Matthew over 11 years
    I think the recommended configuration is to put follow symlinks and wide links in the share's section (instead of global) for security reasons. The unix extensions directive should go into the global section as pointed out by user36732 below.
  • Necktwi
    Necktwi over 5 years
    it didn't work for me; samba server on raspberrypi ubuntu : cifs mount on arch linux.