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 01-13-2003, 05:26 PM   #1
jacana
LQ Newbie
 
Registered: Jan 2003
Location: San Francisco
Distribution: redhat 8.0
Posts: 4

Rep: Reputation: 0
NFS and etc/hosts


I have just installed Redhat 8.0 on a home LAN. Lan seems to work fine - I can ping other machines using either their symbolic name (from etc/hosts) or their IP address.

However NFS mounts fail with a RPC Portmap message. I also tried telnet, to get connection refused. Firewall is disabled and hosts.accept and hosts.deny are empty so I don't believe this is a security or permissions issue. etc/exports is also set up correctly.

I removed the entries from etc/hosts and found that NFS mount worked fine using the IP address of the box I wanted to link to. But put the entries back in and NFS mount fails even if I use the IP address rather than the host name.

If this wasn't so basic, I'd suspect a bug. Any thoughts on further options to try?

(Sadly, smbmount for the one remaining windows machine works well throughout.)
 
Old 01-14-2003, 07:40 AM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Try:

# showmount -e <ip from the machine that is exporting>

Also, do you have portmap runing? are you usinf nfs or unfs?
 
Old 01-15-2003, 10:48 AM   #3
jacana
LQ Newbie
 
Registered: Jan 2003
Location: San Francisco
Distribution: redhat 8.0
Posts: 4

Original Poster
Rep: Reputation: 0
showmount show the correct exported file list. I simplified it to the bare minimum bto elimante this as a cause of the problem.

/ *.localdomain

rpcinfo -p shows portmapper, nfs, mountd running.

I've disabled the firewall (iptables -F) and emptied the hosts.access and hosts. deny files.
 
Old 01-15-2003, 02:13 PM   #4
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
In the machine that you are mounting the directory the portmap is runing? The domain in this machine is localdomain? Can you try to remove from the machine that is exporting from the /etc/exports the *.localdomain to make a test?
 
Old 01-15-2003, 06:37 PM   #5
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
re telnet - i think newer linux distros do not include telnetd as they want you to use ssh
are rpc.statd and rpc.mountd running on the server?
 
Old 01-16-2003, 03:24 AM   #6
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
It is running on my red 8.0

for the NFS , first check if the nfsd is running !!!
ps aux | grep nfs

normally you get something like:

oot 4514 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]
root 4515 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]
root 4516 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]
root 4517 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]
root 4518 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]
root 4519 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]
root 4520 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]
root 4521 0.0 0.0 0 0 ? SW 09:51 0:00 [nfsd]

otherwise run :
/etc/init.d/nfs start


after that check
if you have the export directory in /etc/exports
something like ( put the directory you want to export )
/opt/var/ftp/pub
without option you export for the everybody


otherwise run
exportfs -a ( for all the export directories)

now check to mount the nfs on your own machine (the nfs server) by using the IP of your own machine to avoid the connection problem.

for the telnet, you run it via the xinetd.

To run it simply, run the setup, choose the services, and check the telnet service (same thing for ftp ) save the configuration.
restart the xinetd with

/etc/init.d/xinetd restart


hope this help you

bela
 
Old 01-16-2003, 10:15 AM   #7
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
/usr/sbin/in.telnetd has to be present on a server for you to telnet to it.

telnet-server-0.17-7.i586.rpm or similar contains it.
 
Old 01-16-2003, 11:48 AM   #8
jacana
LQ Newbie
 
Registered: Jan 2003
Location: San Francisco
Distribution: redhat 8.0
Posts: 4

Original Poster
Rep: Reputation: 0
Many thanks for all the suggestions, esp bela whose step by step guide was rather better than the manual!

I had already followed the steps outlined but with no success. I fixed temporarily by taking all local name entries out of etc/hosts and using the IP address directly.

Incidently there is a bug (76543) on buzilla that seems to have symptoms very close to the problem
 
  


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
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 03:51 PM
NFS security with /etc/hosts.deny supernode Linux - Security 8 10-22-2005 09:51 AM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
slack-9.1 and nfs/hosts.allow Zeratool Box Slackware 2 06-09-2004 03:05 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM

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

All times are GMT -5. The time now is 12:36 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
Open Source Consulting | Domain Registration