I have an odd issue since migrating from a RHEL NFS server to TrueNas.
I have a media mount where I use mapall to make sure all files are written as the correct user on the remote NAS Server. This is restricted to a couple of IP addresses - for example
/Share/Video 192.168.3.32/255.255.255.255(ro,root_squash,sync,all_squash,anonuid=2001,anongid=2001)
With this old setup I could mv or cp a file onto the NFS mount and ultimately it would have the uid/gid of 2001.
Under TrueNas I’ve tried to setup the same configuration via the webui which results in the following entry in /etc/exports.
"/mnt/mediapool/Video"\
192.168.3.32(sec=sys,rw,anonuid=2001,anongid=2001,all_squash,insecure,no_subtree_check)
with a TrueNAS NFS mount
- “cp” everything appears to work correctly, but results in the wrong umask of 600.
- “mv” the file retains the uid/gid of the original user on the source machine running Fedora.
With my old RHEL NFS server both CP and MV preserved the anonuid/anongid values and the correct umask.
Any ideas as I’d prefer to not use a CIFs mount for this mult-user share.