LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux shares (https://www.linuxquestions.org/questions/linux-newbie-8/linux-shares-787773/)

deelinux 02-08-2010 08:45 AM

Linux shares
 
Hello

I have two Redhat Linux systems and I want create a share on each and then be able to copy files to each using scripts etc. (I dont want to use FTP)

What is the most standard way of doing this?

I have read that you can use /etc/exports which seem easy enough, but how does one connect to the remote share and copy files etc, is this command line or file browser etc.

Again any pointers / help would be great

Rgds

D

tredegar 02-08-2010 09:09 AM

NFS is what you want.

It allows a remote filesystem to appear as if it was mounted locally, so it becomes part of your directory tree. The remote filesystem is "mounted" locally, thereafter there's no "connection" to be handled - NFS handles all that invisibly for you.

IIRC there are some security considerations, but you should be fine on your LAN

You can use any tools you like to manipulate these files: the GUI, the CLI, whatever.
Here's a link to a NFS HOWTO

damgar 02-08-2010 09:16 AM

Quote:

It allows a remote filesystem to appear as if it was mounted locally, so it becomes part of your directory tree. The remote filesystem is "mounted" locally, thereafter there's no "connection" to be handled - NFS handles all that invisibly for you.
The same can be done with Samba if there may be occasion to connect using a windows machine, then samba might be for you.

tredegar 02-08-2010 09:33 AM

There's no point in using samba if you have only linux PCs.

Don't forget that if you are running KDE and have ssh running on both machines, konqueror has the awesome fish://user@remotehost protocol. The remote user's /home shows up in your file manager, and you can drag and drop files and directories between machines. This is quick & easy when you just want to grab a file or two from some other computer. It is also secure, because it connects by using ssh.

schneidz 02-08-2010 01:35 PM

^ sshfs works well for me.

it is not as standard as nfs but it gets the job done quicker.

chrism01 02-08-2010 04:51 PM

See Chap 19 http://www.redhat.com/docs/en-US/Red...loyment_Guide/

deelinux 02-09-2010 02:50 AM

Many thanks to all you Linux good fellas

I have enough to work with

cheers

D


All times are GMT -5. The time now is 12:53 PM.