SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have connected two computers (both running slack 10) by ethernet cards with a crossover cable. Both machines are able to ping each other & I have checked each cards configuration with ifconfig.
I have tried to set up an nfs folder on one machine to be mounted by the other. When I type 'showmount -e localhost' the folder shows up fine on its machine but when I try to mount it on the other machine, either from the command line or via /etc/fstab I get the error message 'failed, reason given by server: Permission denied'
The firewall on each machine is turned off. I have used the * wildcard in /etc/exports so it is not a naming problem, as far as I can tell.
Nothing I have managed to read or google has sorted it. All suggestions & or further reading gratefully received.
Hi - thanks for the interest. Sorry if this is a long post but I am trying to provide all the information as requested. I may have missed something very basic, I have been using Linux for about one & a half years but this is the first time I have tried networking anything.
the two computers are (as in /etc/hosts):
127.0.0.2 sb.net sb (client)
127.0.0.3 lb.net lb (server)
hosts.allow is set to 'ALL:ALL' and there are no entries in hosts.deny
the /etc/exports entry on lb is:
/test *(rw,sync,no_root_squash)
and the /etc/fstab entry on sb is
lb.net:/test /in nfs noauto,user,ro 0 2
The permissions on both folders are liberal. My basic approach has been to try & allow everything & tighten up afterwards.
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284
Rep:
I do use nfs all the time and every thing looks fine to me but the * and the fact that you are using the reserved network 127.0.0.0/8 , not too sure how good the wild cards are.
Try this:
Change the IP's to something something in the 192.168.0.0/8 network.
Then on the /etc/exports set the code like this, more or less:
Code:
/test 192.168.0.2(rw,no_root_squash,sync)
(asuming that the client machine is actually 192.168.0.2), then
Code:
exportfs -a
to refresh the nfsd settings. And adjust the /etc/fstab acording to this.
Why don't you try putting a specific entry in /etc/hosts.allow containing your actual IP address of the client.
And i think using an ip address instead of the * in /etc/exports will help too, as mentioned above.
Last edited by Vincent_Vega; 01-02-2005 at 03:24 PM.
the output of rpcinfo -p servername run on the client
the output of rpcinfo -p localhost run on the server
and have you edited /etc/hosts.allow and/or
/etc/hosts.deny ???
Permission denied has nothing to do with rpc or portmap but most likely the shares have not been exported properly especially using a 127.x.x.x type local loop type IP address. Like mentioned before, you need to use networkable IP addresses in order for your nfs shares to work and export properly.
Hi - I've got it working - thanks for all suggestions.
Changing the addressed from 127* to 192.168* addresses made a difference. Strangely enough, after that I also had to create an /etc/exports entry for the client machine and reboot to get RPC working. After that both machines can mount each others 'shared' directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.