Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
symbolic links, samba and cifs [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gr0x0rd
Guru
Guru


Joined: 12 Aug 2006
Posts: 311

PostPosted: Mon Aug 24, 2009 11:11 pm    Post subject: symbolic links, samba and cifs [solved] Reply with quote

Hello all,

I've run a samba server for years, and usually connecte to it via windows clients. I have a number of hard disks in my desktop machine that I mount to /usr/storage/x and then access from a folder in my home directory using symbolic links. The folder containing these symlinks is also the root of my samba share. For windows clients, these symlinks are viewed as folders, and the contents of these drives can be easily seen.

The other day I got fed up with windows on my notebook and put gentoo on it. But, after mounting my samba share via cifs, I found that the symlinked hard disks (or any other symlinks on the remote filesystem) no longer functioned after the mount: the client machine treats them as symlinks to a location with the local filesystem, rather than on the host filesystem.

... Update!

From the ubuntu forums, put the following in the general section of your smb.conf:
Code:
follow symlinks = yes
wide symlinks = yes
unix extensions = no

_________________
~g
emerge -FML...
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Wed Aug 26, 2009 7:43 am    Post subject: Reply with quote

For mounting linux shares on a linux computer you're better off using NFS.

http://en.gentoo-wiki.com/wiki/NFS

This will cause your symlink issue to arise again, but that can be fixed by replacing the symlinks with directories and mounting the destinations inside them with mount -o bind source link, you'll need to make sure this is run after boot though. I don't know if it can be placed in fstab or if you need to do it in the local init-scripts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum