NFS version 4 and idmapd under Redhat Linuxes

Technical discussions, how to do geeky things more efficiently.

Moderators: Nanook, carl

Post Reply
User avatar
Posting Freak
Posts: 347
Joined: Tue Jun 25, 2013 10:08 pm
Location: Shoreline

NFS version 4 and idmapd under Redhat Linuxes

Post by Nanook » Mon Dec 02, 2013 2:25 pm

This applies to any Redhat derived Linux, Fedora, CentOS, Scientific Linux, and possibly other operating systems using NFSv4.

Recently after an update, around November 20th, 2013, to our servers running CentOS 6.4, we ran into problems with NFS mounted files showing up with an ownership of nobody.

We've been using NFSv4 to mount files off a file server for over a year with no problem. I had never configured idmapd or made sure that it was running, yet, until this recent update everything worked.

In order to get things working again, it was necessary to set the domain in idmapd and make sure idmapd was running.

To do this, edit /etc/idmapd.conf, the beginning of the file you'll see something like this:

Domain =

If this is commented out, or if the domain isn't correct, idmapd will not function properly and NFSv4 ownership mapping will be broken.

Usually, the domain is the same as your NIS domain but it may be different. The important thing is that it be the same on the server and client machines.

Then in System->Administration->Services, make sure rpcidmapd
is enabled.

From a shell prompt type:

ps aux | grep idmapd

To make sure it is running and you may want to reboot and do that again to make sure it gets properly started after a reboot.
Last edited by Nanook on Mon Dec 02, 2013 2:27 pm, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests