i have both pcs with redhat 9 with both root passwords.
how can i setup NFS please give me steps
Main Topics
Browse All TopicsIs it possible to use ftp to transfer a file from pc1 to pc2 with fix source location on pc1 and fix loaction on pc2 where it is to be copied/overwritten using any shell script or C program?
can scp is used for same purpose? how can i use that command in C program?
one more thing how a socket program can help in my condition?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
OK we will call the pc you want to copy to client_pc and the pc you want to copy from host_pc.
Here we go,
log in as root user on client_pc.
cd into the /etc directory
open the file named exports in some editor (I use vi so vi exports)
add a line that looks like this:
/path/and/name/of/director
side bar, this line takes a bit of explaining the /path/and/name/of/director
save and close the exports file
back at the command prompt issue this command: exportfs -ra This will clear all exported files systems and then re-export everything in the exports file.
Now that takes care of the client_pc. Now go ahead and log out of the client_pc
Turning our attention to the host_pc log in as root
Now this is what I like to do because I then have one place for all my mounted file systems
somewhere on the root file system there should be a directory named mnt (cd / then ls -l and look for a directory named mnt)
If there is one the cd /mnt otherwise make one (mkdir /mnt then cd /mnt)
Inside the mnt directory I like to make a directory named after the client_pc I am going to mount so mkdir /client_pc
at this point you can now mount the remote file system mount client_pc:/path/and/name/o
The /path/and/name/of/director
Assuming everything went ok (no errors) the remote file system is now mounted and you now have access to it.
Now you simple cp /some/file/name /to/the/mounted/file/syste
And away you go
Business Accounts
Answer for Membership
by: PaulS_IIIPosted on 2004-11-16 at 10:12:13ID: 12596480
I will assume you are using some flavor of Unix/Linux. If so, do you have admin (root) priviledges on both machines? Or possible know someone who does?
The easiest way to do this, assuming you have control over both machines, whould be to setup an NFS share between the 2 pc's and use a cp in a shell script to copy your file to the mounted filesystem of the other PC.
However, if you don't have control of the second pc then it might get a bit trickier.
Can you provide some more detail as to your situation?