Hi, I have continued my NFS tests, helped by the many useful mails received from the list (e.g the suggestion to update /etc/hosts.allow and the security considerations), and I have now another kind of problems. I can now use successfully the NFS by mount by using the local host, but I have problems when I try to use it from a remote client machine. I have tried to use the following command: mount -t nfs 198.162.1.2:/media/floppy /mnt/nfs The command works for a while and then terminates with the message: mount: RPC: times out I used ping to check that the two machines were communicating and ping worked without problems I checked the messages in /var/log/messages and I found the following message on the server machine: rpc mountd: authenticated mount request for 198.162.1.1:729 for /media/floppy However the mount did not terminate successfully on the client machine Please suggest possible corrective actions Thank you Mario Pesce
X-Original-To: mario@datamission.co.uk Delivered-To: b200964@mail6.easyspace.com Date: Tue, 16 Sep 2003 13:02:28 -0500 (CDT) From: michael stone <mailguy@hpc.me.utexas.edu> To: Mario Pesce <mario@datamission.co.uk> Cc: <suse-linux-e@suse.com> Subject: Re: Fwd: Re: [SLE] NFS Help
On Tue, 16 Sep 2003, Mario Pesce wrote:
Hi,
after a few attempts I finally managed to get it working.
My entry in the /etc/exports file was:
/home/mydir (ro,no_root_squash)
I used the command exportfs -a that suggested to add an '*' for the hosts and therefore I changed the entry as follows:
/home/mydir *(ro,no_root_squash)
I tried again to mount the exported directory and it worked perfectly.
Best Regards
Mario Pesce
A better way to do this is to actually specify the ip address of the computer you want to be able to mount the nfs directory. With your current setup, anyone in the world could mount the directory, and mount it as root. This is might be OK if you are behind a good firewall, but it is still not a very good practice.
For example, instead of a star, try putting the domain name, ip address or the ip/netmask combo of who you want to allow:
/home/mydir 192.168.1.2(ro,no_root_squash)
will only allow the computer with the ip 192.168.1.2 to connect, and:
/home/mydir 192.168.1.0/255.255.255.0(ro,no_root_squash)
will only allow the computers with ips ranging from 192.168.1.0 to 192.168.1.255 connect.
For testing your export on the localhost you can use
/home/mydir 127.0.0.1(ro,no_root_squash) or /home/mydir localhost(ro,no_root_squash)
hth, -- Michael Stone Linux / High Performance Computing Administrator
The University of Texas at Austin Mechanical Engineering Department ETC 3.130 ph: 471.5951 agentsmith[at]mail.utexas.edu
Hi,
thank you for the answer. I added the line to etc/hosts.allow as you suggested, but I still got the same error.
I have then tried to start manually:
portmap rpc.mountd rpc.nfsd rpc.lockd
and, after that, I got another message:
mount: localost:/home/mydir failed, reason given by the server: Permission denied
Any suggestions are welcome
Thank you and best regards
Mario Pesce
At 03:09 PM 9/16/03 +0200, you wrote:
Hi,
When I installed NFS, I also added the following line in
rpc.mountd : ip.address.of.the.client
Fred
> >Hello, > >I have tried to use NFS and I made some tests on a single machine as follows: > >a) I have added an entry to the /etc/exports file for my home
/etc/hosts.allow : directory
>b) I have created a new directory /mnt/nfs to test if I could mount my export >c) I have tried the mount command as follows: > > mount - t nfs localhost:/home/mydir /mnt/nfs > >The command does not succed and I receive the following message: > >mount: RPC: Unable to receive : errno=Connection refused > >Can you please suggest what is the cause of the message and what I should >do to correct the problem ? > >Thank you and best regards > >Mario Pesce
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (1)
-
Mario Pesce