LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2002, 08:12 PM   #1
blaze
LQ Newbie
 
Registered: Nov 2002
Posts: 3

Rep: Reputation: 0
[b]Problems sharing files between linux computers


I am trying to share files between two redhat 7.2 boxes, on the box im trying to connect from (homer.simpson), the the /etc/exports file has

/misc/share marge.simpson(rw)

on marge.simpson, when i type
mount -t nfs homer.simpson:/misc/share /mnt/nfs

i get an error saying
mount: cant get address for homer.simpson

when i type
mount -t nfs 192.168.2.100:/misc/share /mnt/nfs

i get
mount: RPC: Unable to receive; errno = Connection refused

both computers have the same files set up the same way, naturally i get the same error if im trying to connect marge to homer or homer to marge

does anyone have any idea what im missing or what the problem is, i chmod 0777 /misc/share on both computers, dont know if that even makes a difference

any help is greatly appreciated
thanks
 
Old 11-27-2002, 03:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
are these domain names listed in your /etc/hosts file? typicaly you wouldn't add the domain to it, so host.domain would be resolved as a different machine to just host by itself. if this isn't set up then it will be failing from both sides. simply having the right hostname set isn't sufficient as it'd be far to east to lie to a server, so the address has to be fully resolvable from the server.
 
Old 11-27-2002, 07:50 AM   #3
blaze
LQ Newbie
 
Registered: Nov 2002
Posts: 3

Original Poster
Rep: Reputation: 0
I wasnt 100% sure about the hosts file so i put:
192.168.2.100 homer.simpson
192.168.2.102 marge.simpson

in the file for both computers, but i still get a message saying:
mount: RPC: Unable to receive; errno = Connection refused

thanks for the help so far, it seems like there might be something preventing my computers from receiving information from each other, the files i mentioned here are the only ones ive made any changes to, is there anything anyone can think of that im forgetting? these computers both boot in windows, and can see each other with no problems in windows, but just not when i boot in linux, is there any kind of default firewall that might be preventing transfer?

Thanks
 
Old 11-27-2002, 09:39 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
firewall is unlikely, there might be one in place, whcih you should be able to remove in some gui or other... try mounting the share and then seeing if dmesg gives you any useful info. also... the nfs server is up and running on the server machine i take it?
 
Old 11-27-2002, 11:45 AM   #5
jetfreggel
Member
 
Registered: May 2002
Posts: 172

Rep: Reputation: 30
check if the user has permission to read or write in that dir
or make a group for that dir with that user
 
Old 11-27-2002, 06:48 PM   #6
blaze
LQ Newbie
 
Registered: Nov 2002
Posts: 3

Original Poster
Rep: Reputation: 0
i dont have a server, just two computers that im trying to share files on, nfs is running on both, and after i make changes and restart nfs i dont get any errors, when i try to mount the share (from the other computer) is when i get the error message...what is dmesg? the share is world rwx

thanks
 
  


Reply



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
Sharing In Between Computers [Mandriva 10.2] kimothy Linux - Networking 2 06-21-2005 03:16 AM
Problems sharing the printer on Linux via Samba to Windows computers melao SUSE / openSUSE 25 03-22-2005 09:37 AM
Sharing a printer for 30+ computers with Samba rjshirts Linux - Networking 1 01-05-2005 04:24 PM
File Sharing With Windows Computers John0 Linux - Newbie 2 05-25-2003 08:19 PM
Having 2 Linux computers share files with each other? Seph64 Linux - Networking 7 03-29-2003 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:19 AM.

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
Open Source Consulting | Domain Registration