[PLUG] Stupid NFS question

John Jason Jordan johnxj at comcast.net
Sun Dec 22 18:32:24 UTC 2013


On Sun, 22 Dec 2013 02:51:11 -0800
King Beowulf <kingbeowulf at gmail.com> dijo:

>> mount.nfs: access denied by server [the laptop] while mounting
>> 192.168.0.155:/media/jjj/Movies

>I assume you have started all the correct daemons and modules on the
>server (laptop):
>rpc.statd
>rpc.portmap
>nfsd
>nfsd.ko

Maybe, maybe not. The GUI Task Manager does not list any of these. From
the command line pidof returned a number for rpc.statd and several
for nfsd, but none for the other two. I assume that this means that the
other two are not running. I asked Google how to start a daemon and all
I came up with is start-stop-daemon, but all I get are error messages
due to incorrect syntax. The man page assumes that I know more about
these things than I do.

I did run sudo /etc/init.d/nfs-kernel-server restart, which executed
without error. 

>(appropriate init scripts will depend on your distro)
>
>and configured properly
>/etc/hosts.allow:
>
>portmap:192.168.0.0/255.255.255.0 127.0.0.1
>lockd:192.168.0.0/255.255.255.0 127.0.0.1
>statd:192.168.0.0/255.255.255.0 127.0.0.1
>mountd:192.168.0.0/255.255.255.0 127.0.0.1
>rquotad:192.168.0.0/255.255.255.0 127.0.0.1
>
>/etc/hosts.deny:
>
>portmap:ALL
>lockd:All
>mountd:ALL
>statd:ALL
>rquotad:ALL
>
>/etc/hosts.equiv:
>
>localhost
>
>and your /etc/exports should look like:
>
>/media/jjj/Movies
>192.168.0.0/255.255.255.0(rw,no_subtree_check,root_squash)
>127.0.0.1(no_subtree_check,sync)
>
>(all one line).

All done, as posted above. I did not have an /etc/hosts/equiv file, but
I do now, containing just "localhost."

>The NFS client then needs daemons running:
>rpc.statd
>rpc.portmap

From the command line on the desktop I get a pid for rpc.statd, but none
for rpc.portmap. Again, I don't know how to start it.

>You can now mount with
>
>sudo mount 192.168.0.155:/media/jjj/Movies /media/jjj

Still getting the same error message "access denied by server."



More information about the PLUG mailing list