I am using NFSv4 on Ubuntu 20.04 and 24.04 filesystems.
I cannot understand how to use idmapd.conf. I have read the man page, multiple Stack Exchange posts, and multiple blogs, and none of them explain the basic concepts well enough for me to apply them to my situation. I have probably a dozen or more questions, which I'll post individually.
In this scenario, I have three computers. The first is Exporter; it's the machine that will export the NFS filesystem. Its FQDN is exporter.example.com.
The other two are Recipient1 and Recipient2. Each of these will mount the exported filesystem. They have the same set of users, but different UIDs and GIDs assigned to them. Their FQDNs are recipient1.example.com and recipient2.example.com, respectively.
- What do I use for the three values of the
Domainvariables?
The man page states that this is
The local NFSv4 domain name. An NFSv4 domain is a namespace with a unique username<->UID and groupname<->GID mapping. (Default: Host's fully-qualified DNS domain name)
Each computer has a unique UID/GID mapping to names, so this implies that the three machines' idmapd.conf files should have three separate values for this variable:
# Exporter
[General]
Domain = exporter.example.com
# Recipient1
[General]
Domain = recipient1.example.com
# Recipient2
[General]
Domain = recipient2.example.com
However, this answer to an NSFv4 mapping question says
Make sure both sides use the same idmap domain
and this answer to another similar question says
Make sure the
/etc/idmapd.confDomainparameter is the same on server and client
How do I make the Domain value be both the same on all computers and unique to each username/ID mapping, when all computers have different username/ID mappings?