User Tools

This is an old revision of the document!


Mapping UID and GID of local user to the mounted NFS share

First of all, enable is on the client and server:

echo N > /sys/module/nfsd/parameters/nfs4_disable_idmapping
clean idmap cache and restart idmap daemon:

nfsidmap -c
service rpcidmapd restart

My need restart NFS server and/or client…

/etc/init.d/nfs-kernel-server restart

Now on server and the client will send instead of numeric IDs string principals like bob@YOURDOMAIN.COM. You need to have bob account on the both hosts - client and server.

Nevertheless, the numeric ID’s can be different.

To make these changes permanent, create configuration files in /etc/modprobe.d/,

on server (modprobe.d/nfsd.conf):

options nfsd nfs4_disable_idmapping=N
on client(s) (modprobe.d/nfs.conf):

options nfs nfs4_disable_idmapping=N