I have a server with NFSv4. I am mounting contents of the home folder of remote user to local host. Able to read and write contents, but when I am checking ownership of files at the mounted volume from the local host, they all belongs to corresponding remote user and group (512). Is there any way to make it look like they belong to the local user and group (1000) on the local host?
/etc/exports on remote host (IP is 192.168.1.110)
/home/user512 192.168.1.142(rw,sync,all_squash,anonuid=512,anongid=512)
/etc/fstab on local host (IP is 192.168.1.142)
192.168.1.110:/home/user512 /home/localuser/projects/project512 nfs rw,hard,intr,rsize=32768,wsize=32768 0 0
rpcidmapdon my Linux Mint client. – Powerriegel Jun 20 '16 at 17:17echo N > /sys/module/nfsd/parameters/nfs4_disable-idmappingmake this setting permanent, or will I have to reset it every time after reboot?
– mauritslamers Nov 18 '16 at 11:36idmapdinstead ofrpcidmapd– mauritslamers Nov 18 '16 at 11:37nfs-idmapd– Philippe Gachoud Nov 23 '18 at 10:54systemctl restart nfs-idmap.service. And on the server side, the path is:/sys/module/nfsd/parameters/nfs4_disable_idmapping; while on the client side it is/sys/module/nfs/parameters/nfs4_disable_idmapping(that is, with out the 'd' in nfs). – NYCeyes Nov 26 '18 at 23:24