Tuesday, July 09, 2019

Changing owner of mounted NFS filesystem.

Mounting an NFS filesystem from Windows on Linux.

The user:group of the files was being set to nobody:nobody

To override this, you can use:

rw,vers=3

in your options in /etc/fstab

Found this on:

https://serverfault.com/questions/520276/nfs-user-mapping

Using mount we could see that the mount options were defaulting to nfsv4 (which doesn't support changing the user? - it certainly doesn't offer setting the user in the available mount options.)