Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server with NFSv4. I am mounting contents of the home folder of remote user to local host. Able to read and write contents, but when I am checking ownership of files at the mounted volume from the local host, they all belongs to corresponding remote user and group (512). Is there any way to make it look like they belong to the local user and group (1000) on the local host?

/etc/exports on remote host (IP is


/etc/fstab on local host (IP is    /home/localuser/projects/project512   nfs    rw,hard,intr,rsize=32768,wsize=32768    0       0
share|improve this question
up vote 15 down vote accepted

This is what idmapping is suppose to do. First of all, enable is on the client and server:

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

clean idmap cache and restart idmap daemon:

# nfsidmap -c
# service rpcidmapd restart

Now on server and the client will send instead of numeric IDs string principals like bob@YOURDOMAIN.COM. You need to have bob account on the both hosts - client and server. Nevertheless, the numeric ID's can be different.

share|improve this answer
Ftr, on nfs server the path is /sys/module/nfsd/parameters/nfs4_disable_idmapping (nfsd, not nfs) – Mike Purcell Dec 21 '15 at 19:42
No service rpcidmapd on my Linux Mint client. – Corni Jun 20 at 17:17

You have all the pieces there. From the exports man page, all_squash maps all uids, and gids to the anonymous versions. You have then forced those values to be 512. If you changed those to 1000, the nfs server on the remote host would make everything 1000.

share|improve this answer

on your nfs client, edit /etc/idmapd.conf and change


Nobody-User = myappuser
Nobody-Group = myappuser

afther this restart the nfs service

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.