NFS4 Identity Mapping

Additional software may be required to get the ID mapping working at ETH.

The software is open source and can be found at but has also been incorporated into the official nfs-utils repository and is directly available in the nfs client packages of newer distributions.

Follow the instructions below to configure ID mapping your Linux.


CentOS 7/8 and RHEL 7/8

Run the following command as root to set up a yum repository maintained by isginf for installing and updating the package libnfsidmap-regex:

curl -s > /etc/pki/rpm-gpg/RPM-GPG-KEY-isginf
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-isginf
cat > /etc/yum.repos.d/isginf.repo <<__END__
name=isginf Extra Packages for \$releasever - \$basearch

Then run

yum -y install libnfsidmap-regex


The plugin is part of the libnfsidmapd package that is installed as a dependency of nfs-utils.

Ubuntu 18.04 or Newer

The plugin is available as libnfsidmapd-regex in the universe repository. Just run

apt -y install libnfsidmap-regex

to install.


Edit /etc/idmapd.conf as root, delete all existing text and copy-paste the content below:

Domain =
Local-Realms = D, D.ETHZ.CH

User-Regex = ^D\\([^@]+)@ETHZ.CH$
Group-Regex = ^([^@]+)$|^D\\([^@]+)@ETHZ.CH$
Prepend-Before-User = D\ 
Append-After-User = @ETHZ.CH
Append-After-Group =

Method = regex, nsswitch

domain users = users

I Attachment History Action Size Date Who Comment
Unknown file formatrpm libnfsidmap-regex-20180227-1.src.rpm r1 manage 2.7 K 2018-03-07 - 13:57 StefanWalter SRPM for libnfsidmap-regex

Page URL:
© 2022 Eidgenössische Technische Hochschule Zürich