Re: NFS no_root_squash not working (permission denied)
On Wed, Aug 10, 2016 at 11:01:41PM +0200, Erwan David wrote:
> Le 10/08/2016 à 22:38, Ulf Volmer a écrit :
> >> Is there ANYONE using NFS with no_root_squash on jessie amd64 successfully?
> >> If so, please tell me how you did it!
> > NFS run here with jessie amd64 and no_root_squash fine w/o any problems.
> >
> > Server is jessie, client is centos/fedora. There must something wrong on
> > your setup.
Any suggestions on what I can try to change? Could you post your jessie
server's /etc/exports and /etc/default/nfs-kernel-server configs, or at
least the parts relevant to the working no_root_squash mount? And any
other configs that I don't know about....
Which kernel version? Just in case this is a kernel issue.
> I've seen some problems with a mix of NFS v3 and v4. Especially if v4 is
> enabled but not fully configured.
I googled "debian disable nfsv4". It came up with
http://unix.stackexchange.com/questions/205403/disable-nfsv4-server-on-debian-allow-nfsv3
I edited /etc/default/nfs-kernel-server as indicated in the answers,
adding "--no-nfs-version 4" to *TWO* places. Restarted nfs-kernel-server.
Mounted from the client. Still permission denied. Re-ran "exportfs -a"
on the server. Re-mounted from the client. Still permission denied.
(All of this on my desktop "server" of course, not the real server.)
Reply to: