Re: troubleshooting nfs-kernel-server on Raspbian Jessie
On 30/03/2019 02:20, Jason wrote:
> I am trying to set up an NFS export on a Ras Pi (Raspbian Jessie).
> Something seems to be missing and I need help troubleshooting it.
>
> At first the NFS port 2049 was not even being opened. After much futzing
> around I discovered that if I manually start rpcbind with
>
> $ sudo /etc/init.d/rpcbind start
This starts the service manually, but doesn't mark it for automatic
start. To do that, try:
$ systemctl enable --now rpcbind
> then restart the nfs-kernel-server I can get it to work, but only if I
> spell out the full ip address of the client. For instance if I put this
> in /etc/exports it works:
>
> /srv/export 192.168.1.1(rw,sync)
>
> but not if I change it to this to allow other machines on the LAN to
> mount (I get: mount.nfs: access denied by server while mounting
> 192.168.1.15:/srv/export):
>
> /srv/export 192.168.1.*(rw,sync)7
Are you running "exportfs -rav" or similar after editing that file?
>
> So I have two questions:
> 1) Why does rpcbind not start automatically on boot?
>
> 2) Why can I not specify a range of client addresses in /etc/exports ?
>
> Thanks,
Reply to: