"Authentication error" when mounting NFS share on Red hat Enterprise Linux

Solution Verified - Updated -

Issue

  • Problem mounting home directory from NFS server
    [root@hostname ~]# mount -t nfs X.X.X.X:/home/username /home/username
    mount: mount to NFS server 'X.X.X.X' failed: RPC Error: Authentication error.
    
  • I have the IP and subnet in hosts.allow and the NFS services in hosts.deny, and when I do this I can't register the service:
    # grep -v \# /etc/hosts.allow
    service: 192.168.1.10 255.255.255.0 
    # grep -v \# /etc/hosts.deny
    portmap:ALL
    lockd:ALL
    mountd:ALL
    rquotad:ALL
    statd:ALL
    
    • I see the following error message when trying to connect with the configuration above:
      portmap[31001]: connect from 192.168.1.10 to getport(nfs): request from unauthorized host
      

Environment

  • Red Hat Enterprise Linux (RHEL) 4

  • Red Hat Enterprise Linux (RHEL) 5

  • NFS clients mounting shares from an NFS server (the server can be another RHEL host or any type of NFS server).
  • tcpwrappers configured with "ALL:ALL" set and uncommented in /etc/hosts.deny

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.