LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2011, 06:45 PM   #1
JWWOOD
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
Granting File Access From One Linux Machine to Another Linux


1. I have two RHEL 5.4 Linux machines on the same network, A and B.
2. I have an application running on Machine A needs to read a file on Machine B.
3. Do I have to use something like NFS, or is there a simple command to permit this?

Note: I read a related thread, but was hoping there's something "out of the box" instead of using NFS, HTTP, FTP, etc.
 
Old 03-04-2011, 07:07 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
All of those things you cite are 'out of the box'. The method of sharing could be as a simple as copying files with scp.
Code:
scp your.source.host:/the/full/directory/filename.ext the.target.host:/destination/directory/or/filename
What you use should probably be dictated by how you want to use the file(s) and directories. More information would be helpful.

--- rod.
 
Old 03-06-2011, 04:09 PM   #3
JWWOOD
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks theNbomr,
More background: Machine B has a flat file that is a repository of performance data; it is collecting this data over a period of weeks. Machine A is a consumer of Machine B's data and will continue to collect that data over a 2-week test. Machine A aggregates the data into human-readable form so we can better understand how our target application is performing over time (which is actually on a different Linux box, we'll call Machine C).

The SW developer would prefer to not copy the (Machine B) file, but rather just read the file at a given time.
 
Old 03-06-2011, 05:15 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Then it sounds like you need to share the file(s). That is accomplished by exporting it as an NFS share, or as a SMB/CIFS share (probably not appropriate unless there is also a Windows component to this). To share a directory using NFS is not too difficult. It requires one entry in the file /etc/exports on the server, and then starting the NFS server, the method for which varies according to Linux distribution, but is usually simple. Once the share has been setup on the server host, the shared filesystem is attached to the filesystem of each client. This requires one command (at each client), and can be set up to happen automatically at boot-time. As usual, there are a few other details, but these may or may not apply.
There are numerous online tutorials on how to go about these steps. It probably makes sense to find one that refers to the specific distro(s) you are using, especially on the server. If you need assistance, ask here, and you are sure to get some.
--- rod.
 
1 members found this post helpful.
Old 03-06-2011, 07:01 PM   #5
JWWOOD
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Wow! I'm humbled by how some people are so willing to help others that they don't even know. I hope to, someday, match your style. For now, I'm just learning RHEL and you've set me on a glidepath for SUCCESS. If you live near Castle Rock, CO, I'll buy you a beer!
JW
 
Old 03-06-2011, 07:48 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
This interweb thing is interesting that way. A gzillion people have helped me along the way, and it seems the best way to repay them is to try to help others. Hope you'll carry on that tradition.
--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can i access Windows machine through my Linux machine? manickaselvam Linux - Newbie 5 08-04-2010 12:24 AM
How to access files on XP machine from Linux machine john test Linux - Newbie 8 03-09-2009 11:43 AM
How can i share file in linux and access it in other linux machine winxandlinx Linux - Networking 3 08-03-2006 06:11 AM
how to access internet from a linux machine via a linux machine as gateway b0nd Linux - Newbie 5 03-21-2005 12:59 PM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration