User Tools

Site Tools


nfsidmapping

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

echo N > /sys/module/nfs/parameters/nfs4_disable_idmapping

clean idmap cache and restart idmap daemon:

sudo nfsidmap -c
sudo service rpcidmapd restart
sudo service nfs-idmapd 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 [email protected]. 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

nfsidmapping.txt · Last modified: 2023/10/23 16:15 by norman