LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba share with link (https://www.linuxquestions.org/questions/linux-server-73/samba-share-with-link-939442/)

druisgod 04-12-2012 07:59 AM

Samba share with link
 
Hi!

Running Cent 6.2, selinux off.

I have a samba server that shares out home directories and in my home directory I have a link to a mounted disk. I cannot access anything when remotely accessing my share through that link.

The permissions for the link are 777 and ownership is my user, as well as the directory that is being linked to. Am I not able to access anything through links from a remote share? Is there a way to change that?

Thanks!

deep27ak 04-12-2012 08:03 AM

have you configured your firewall for the same?

post your smb.conf
have you created smbusers?

jsveiga 04-12-2012 08:25 AM

Hi, depending on your samba version you may need to add the "wide links" option for the share (or in the global section) in smb.conf.

It used to default to "yes", but not anymore due to security issues. If you add it, make sure you are aware of the security implications:
http://www.samba.org/samba/news/symlink_attack.html

There's also a "follow symlinks", but this is still "yes" by default; just check if you don't have "no" for it.

You can also check this:
http://ubuntuforums.org/showthread.php?t=1439092

PS: "wide links" is incompatible with "unix extensions", so if one is "yes", the other must be "no".

druisgod 04-12-2012 11:21 AM

Quote:

Originally Posted by jsveiga (Post 4651008)
Hi, depending on your samba version you may need to add the "wide links" option for the share (or in the global section) in smb.conf.

It used to default to "yes", but not anymore due to security issues. If you add it, make sure you are aware of the security implications:
http://www.samba.org/samba/news/symlink_attack.html

There's also a "follow symlinks", but this is still "yes" by default; just check if you don't have "no" for it.

You can also check this:
http://ubuntuforums.org/showthread.php?t=1439092

PS: "wide links" is incompatible with "unix extensions", so if one is "yes", the other must be "no".

It *was* the widelinks option. Thanks!


All times are GMT -5. The time now is 05:16 AM.