Samba/nfs symbolic link problem.
Marius Gedminas
marius at pov.lt
Sun Oct 21 13:34:59 UTC 2007
On Sat, Oct 20, 2007 at 07:55:42PM -0500, James Macele Jones wrote:
> I have a bit of a problem here. When I mount a samba or nfs share that
> contains symbolic links it seems that Ubuntu 7.10 "Gutsy" reads the
> links and regular links... for example:
>
> On my server I have a share with 3 drives linked in it. The share is
> called Music... Within the music share I have symbolic links to 3
> mounted HDDs.
>
> [Music]
> A-J --> /mnt/350gig_a
> H-O --> /mnt/350gig_b
> P-Z --> /mnt/250gig
>
> With Nautilus everything works as it should... and if I mount the share
> with Nautilus everything works as it should. However, if I mount it with
> mount -t or smbmount or mount.cifs I get a successful mount but my
> system tries to resolve the links LOCALLY. Therefor all the links show
> as broken... because I don't have a /mnt/350gig_a on my local machine.
>
> How I have spent a good bit of time on the samba forums and the Ubuntu
> forms to no avail. I see many people posting with the problem but few
> with any workable solutions.
Edit the configuration of your Samba server and disable unix extensions:
/etc/samba/smb.conf:
[global]
unix extensions = no
I'm surprised that the samba forums didn't have the answer.
> I should probably mention that the shares also work fine on a windows
> box. Makes me think it must have something to do with my local cifs
> configuration.
Windows does not support Samba's unix extensions and doesn't see the
symlinks as symlinks.
AFAIU Nautilus (or, more specifically, gnome-vfs) has its own
implementation of the SMB/CIFS protocol, and probably doesn't suport
unix extensions either.
Marius Gedminas
--
Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything.
-- Karl Lehenbauer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071021/3bf8f42a/attachment.sig>
More information about the ubuntu-users
mailing list