• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

NFSv4 Client Shows “nobody” As Owner And Group For Mount Point (CentOS/RHEL)

By admin

The Problem

One or more NFSv4 mount points incorrectly show ownership by “nobody:nobody” instead of the correct ownership.

The Solution

This is as-designed behavior and not an O/S-related issue. Instead, this is an NFSv3 versus NFSv4 behavioral difference.

NFSv3 Behavior

In NFSv3, usernames and groupnames are mapped from the UserID (UID) and GroupID (GID) values in /etc/passwd. Remember, with NFSv3 UID and GID must be consistent across the entire client set.

If there is no local match for these UID or GID, the numeric value will be shown instead of a name.

NFSv4 Behavior

In NFSv4, the concept is user@domainname; if there is no centralized user mapping, the user will be mapped to the properties defined in /etc/idmapd.conf; by default the name nobody will be used.

Troubleshooting

1. Ensure the proper domain is in the /etc/idmapd.conf file.

2. Restart the rpcidmapd service.

# service rpcidmapd restart

3. Remount the NFSv4 file system.

# /bin/mount -o remount /nfs/mount/point

Uniform UID and GID Assignment

It is a common misconception that the UID’s and GID’s can differ when using NFSv4. The sole purpose of ID mapping is to correlate the ID to a user name and vice-versa. ID mapping is not intended to replace proper management of network-wide UID and GID values.

If the above process does not remedy the issue, clear the idmapd cache:

# /sbin/nfsidmap -c

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. What’s the difference between locate and find command in Linux
  2. CentOS / RHEL 6 : How to disable IPv6
  3. CentOS / RHEL : How to add Physical Volume (PV) to a Volume group (VG) in LVM
  4. CentOS / RHEL : How to exclude kernel or other packages from getting updated using YUM Versionlock Plugin
  5. CentOS / RHEL 5,6 : How to Change the timezone
  6. The /var/log/messages is empty, and so are the rotated log files such as messages.0, messages.1
  7. How to use command redirection under Linux
  8. CentOS / RHEL 5 : How to install and configure vsftpd server
  9. “530 Non-anonymous sessions must use encryption” – while using curl
  10. Linux OS Service ‘rpcgssd’

You May Also Like

Primary Sidebar

Recent Posts

  • SQL script to find tables that are fragmented
  • TRUNCATE TABLE not releasing space from tablespace
  • How to reclaim entire space of an oracle database table with “Truncate Table” statement
  • Oracle SQL Script to Report Tablespace Free and Fragmentation
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary