NFS and Nobody

I just finished setting up a Linux machine that runs Scientific Linux 6. After testing it for a few days, I rolled it out for my users to use. A user later reported a strange problem with one directory. The directory was a NFS mount of an external server. For some reason, the owner and the group of every file and directory under that directory were both changed to Nobody and Nobody.

If you’re thinking about purchasing a new GPU, we’d greatly appreciate it if you used our Amazon Associate links. The price you pay will be exactly the same, but Amazon provides us with a small commission for each purchase. It’s a simple way to support our site and helps us keep creating useful content for you. Recommended GPUs: RTX 5090, RTX 5080, and RTX 5070. #ad

I tried some suggestions from Google search, and they did not work. However, I did finally find the right article to solve this problem. This fix should apply to the NFS server.

  1. Edit /etc/idmapd.conf and make sure the Domain is set to the right domain. This setting was commented out before.
    Domain = mycompany.com
  2. Restart the idmapd service.
    /sbin/service rpcidmapd restart

The article suggested that the idmapd.conf should also be changed on the client to specify the right domain name. If changing the file on the server does not work for you, try changing the idmapd.conf file on the client, make sure they match, and restart the idmapd service on the client.

Be the first to comment

Leave a Reply