8

Can anyone let me know how can I map a UID 162 to UID 107. Files in my nfs are getting created with ownership 162:162 but on my local machine the userid for that specific user is 107 so I need to map it.

/etc/idmapd.conf

[Mapping]
Nobody-User = nobody
Nobody-Group = nobody

Can anyone let me know how to map it in idmap.conf.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
nitesh2020
  • 81
  • 1
  • 1
  • 2
  • 2
    It may be more sensible to synchronize the user accounts between the systems via LDAP or configuration management than to maintain a mapping table. – thrig Jun 01 '16 at 15:57

1 Answers1

4

nfs4 does not use uid numbers but usernames. You can add to your /etc/idmapd.conf

[Translation]
   Method=static
[Static]
   fred@remote = localfred

where fred is the username on the remote, and localfred is the local username.

meuh
  • 49,672
  • 2
  • 52
  • 114