[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


symbolic links across servers

Posted on 2001-06-12
Medium Priority
Last Modified: 2011-09-20

i have access to 2 servers, and what i need to do is to read some data from 1 server to another, so hence i need a symbolic link (so i assume). i have read the man ln, and info ln and neither tell how to do this, there is alot of info on how to make a link from one file to another.. but nothing on between two servers.

the path in the server 1 is:
the path on server 2 is:

how do i get server 2 to get data from a file in the directory "here" in server 1 from the location of "here_2" on server 2.

thank you for any help on this matter.

Question by:randor1973
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

superschlonz earned 400 total points
ID: 6183395
A link only doesn't work, you also need a network filesystem.
There are at least 4 possibilities: Coda, NFS, SMB and NCP.

I think the easyest way to do it is using NFS.
You have to setup a NFS server on server 2 and add a line to
its file /etc/exports:

/usr/home/trib/cgi-bin/here_2 (rw)

Perhaps you have to add some more options (see in the manual
of exports). I have the following line here in my config:


this means only from the specified net access is allowed. The options are:
rw = read/wrtie
all_squash = all users are squashed to the anon user
anonuid=500  = use the user id 500 for accessing files
anongid=100  = use the group id 100 for accessing files

I think you have to restart nfsd after this change.
On server 1 you can mount this export with the following line:

mount server2:/usr/home/trib/cgi-bin/here_2 /usr/home/tb/here

(the directories must exist before mounting)
Now you should see the files from the other server in the directory

You can also add a line to /etc/fstab so you don't have to login as root
to mount and unmount this directory:

server2:/usr/home/trib/cgi-bin/here_2  /usr/home/tb/here  nfs  noauto,user 0 0

(should be on one line)
Now any user should be able to mount or unmount it:

mount /usr/home/tb/here
umount /usr/home/tb/here

Author Comment

ID: 6191657
thank you for your help, although upon reading your answer i realized that this project was beyond my scope.. so i have found a person to do this task for me.. thank you once again...

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

649 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