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 http://hpc.me.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 /etc/hosts.allow : 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 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