While mounting a share I had issues with idmapping
. Mounting with
sudo mount -t nfs 192.168.0.23:/myshare ./myshare -o nolock
and listing its contents yielded this (note the nobody
and 4294967294
):
-rwx------ 1 nobody 4294967294 48 Sep 27 1998 somefile
When I actually expected this:
-rwx------ 1 1023 1023 48 Sep 27 1998 somefile
I tried using NFSv3 by specifying -t nfs3
without luck:
sudo mount -t nfs3 192.168.0.23:/myshare ./myshare -o nolock,nfsvers=3
After a bit of research, the nfsvers=3
option did the trick
sudo mount -t nfs 192.168.0.23:/myshare ./myshare -o nolock,nfsvers=3
ls -la myshare
...
-rwx------ 1 1023 1023 48 Sep 27 1998 somefile
My question is: what's the difference between the nfsvers=3
option and -t nfs3
? Shouldn't they be the same thing?