Can't solve problem with NFS-server access

Rick Stevens ricks at nerd.com
Mon Nov 29 22:10:55 UTC 2010


On 11/29/2010 01:11 PM, Alan Holt wrote:
> Hello all,
>
> I need your help.
> I have installed NFS-server on my Fedora 14.
>
> Server is 192.168.1.101
> Client is 192.168.1.100
>
> I have stoped my iptables like this:
> # su -c 'service iptables stop'
>
> in /etc/exports
> /home/user/temp 192.168.100/255.255.255.0(ro)

Change the IP specified to 192.168.1.0/255.255.255.0.  You've specified
a completely wrong network for the hosts you list.

> I'm not sure, that I have to write in /etc/hosts.allow and /etc/hosts.deny
>> From the client side I do:
> # sudo mount.nfs 192.168.1.101:/home/booch/Temp /home/booch/data/
>
> And I have got thos error:
> mount.nfs: access denied by server while mounting 192.168.1.101:
> /home/booch/Temp

You're also specifying an export that doesn't exist on the server.
The mount command should be:

	mount 192.168.1.101:/home/user/temp /local/mount/point -o ro

The stuff after the ":" must match the server's export.  Also remember
that mounts default to read/write while you specified read only in the
exports file.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting          ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-  Time: Nature's way of keeping everything from happening at once.  -
----------------------------------------------------------------------


More information about the users mailing list