1820390 Members
3723 Online
109623 Solutions
New Discussion юеВ

Symbolic link in NFS

 
Kiyoung
Advisor

Symbolic link in NFS

Hi.
I was export a directory,it contains a symbolic link that points outside the exported directory.
I mount the directory on an NFS client,but I can't access the symbolic link file.
How can I access the file?
I need a solution.
Thanks.

kiyoung
6 REPLIES 6
Ravi_8
Honored Contributor

Re: Symbolic link in NFS

Hi,

since the sym links are for across the file systems. since you don't have that file system on the NFS clinet, you need to get import that file system too
never give up
Jochen Heuer
Respected Contributor

Re: Symbolic link in NFS

Hi Kiyoung,

I don't think this will work because symbolic links are checked on the client side (it tries to find the file the link points to on the local system).

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Jochen Heuer
Respected Contributor

Re: Symbolic link in NFS

As ravi says. You have to export the other filesystem too and mount it to the same mountpoint where it is mounted on the server. Then the link can be traversed ...

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
T G Manikandan
Honored Contributor

Re: Symbolic link in NFS

should also export the file system to which symbolic link points.
NFS client does not know anything except the present mount points.


T G Manikandan
Honored Contributor

Re: Symbolic link in NFS

Also make sure that

/xxx on system A is mounted as /xxx on system B so that when the symbolic link works properly.

For example consider
file /zzz/yyy linked to /xxx/yyy

Now according to your situation /zzz/yyy is nfs mounted,so xxx should also be mounted nfs and the mount point should be the same i.e /xxx on the nfs client machine.

Revert
Kiyoung
Advisor

Re: Symbolic link in NFS

Thanks a lot.