Linux / Samba: How to force samba to follow symbolic links

Posted on 2012-09-17
Last Modified: 2012-09-17
Hi experts,

I have a machine with SUSE Linux Enterprise Server 11.2 / x64.

On that machine I have a Samba share, and in a directory under that share are symbolic links to directories not within the share tree.

By default Samba is set not to follow those links for security reasons even if the corresponding user has sufficient rights to these files. It won't even do that if the destination is another share's content where the user has equal rights.

My question:
Which configuration options are needed to get completely rid of that restriction ?

Here are the corresponding parts of my smb.conf:

	security = user
	follow symlinks = Yes

	comment = This is the share
	inherit acls = Yes
	path = /theshare
	read only = No
	valid users = theuser

Open in new window

Question by:frankhelk
    1 Comment
    LVL 13

    Accepted Solution

    Found out by myself. Sorry for any inconvenience :)

    The following is needed:

    	allow insecure wide links = yes
    	follow symlinks = Yes
            wide links = yes

    Open in new window

    Please keep in mind that this might pose a security risk in the great wide open ....

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free camera licenses with purchase of My Cloud NAS

    Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now