Solved

symbolic links across servers

Posted on 2001-06-12
2
898 Views
Last Modified: 2011-09-20
hello,

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:
/usr/home/tb/here
the path on server 2 is:
/usr/home/trib/cgi-bin/here_2

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.

Randor
0
Comment
Question by:randor1973
2 Comments
 
LVL 3

Accepted Solution

by:
superschlonz earned 100 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:

/home/mf 192.168.2.0/255.255.255.0(rw,all_squash,anonuid=500,anongid=100)

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
usr/home/tb/here.

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
0
 

Author Comment

by:randor1973
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...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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