On Saturday 07 February 2004 01:53 am, Alexandr Malusek wrote:
Jerome Lyles
writes: On machine A and B the servers are running but:
# /usr/sbin/rpcinfo -p 'server' No remote programs registered.
If portmapper is not visible then NFS will not work. You have to get it working first. Run "rpcinfo" on the NFS server:
I think the problem is that you use an approach which only experts can use: severely restrict access first and then start the service. An easier approach (highly recommended for beginners) is to start the service first and then gradually restrict the access.
This is true. I commented out the restrictions I added in /etc/hosts.deny. Now portmapper is visable to NFS. Thank you very much. It happens that portmap:ALL only allowed localhost access:-). Now I think the only obstacle left is this: # /etc/init.d/nfs start Importing Net File System (NFS)mount: linux:/home/adriel failed, reason given by server: Permission denied failed So I only have a permission problem left I think. Anyone have a solution?
etc/host.allow: portmap: 192.168.0.*
I don't see this syntax in the "man 5 hosts_access". It doesn't mean it cannot work. Anyway, try
portmap: 192.168.0. or portmap 192.168.0.0/255.255.255.0 A.M.
I changed to 192.168.0. in hosts.allow on one of my boxes.
Just a silly question. Can you ping each machine from each other? Yes I can.
Also another gotcha is in /etc/exports file make sure you include a netmask with the ip address. For example this is an entry in my /etc/exports
/home 10.212.32.0/24(rw,sync) 10.212.33.0/24(rw,sync) I changed /etc/exports to: /home/myhome/ 192.168.0.0/24(rw,root_squash,sync) Thanks, Jerome