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

The Geek Diary

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

rpcinfo: can’t contact rpcbind: : RPC: Authentication error; why = Client credential too weak

by admin

The Problem

When exporting an NFS share from Linux NFS Server, it is able to list the share from localhost:

[root@server]# exportfs -a
[root@server ~]# exportfs
/data [world]
[root@server ~]# showmount -e localhost
Export list for localhost:
/data *

However encounter error when list NFS shares from NFS Client:

[root@client ~]# showmount -e server
clnt_create: RPC: Port mapper failure - Authentication error
[root@client ~]# rpcinfo server
rpcinfo: can't contact rpcbind: : RPC: Authentication error; why = Client credential too weak

The Solition

This is due to incorrect TCP Wrapper setting:

$ cat /etc/hosts.allow
sshd : ALL
snmpd : ALL
vsftpd : ALL
ALL : localhost
$ cat /etc/hosts.deny
ALL:ALL

The configuration by default deny all traffic from any servers, except the following:

  • connection from localhost
  • connection to sshd, snmpd, and vfstpd

Add the following to /etc/hosts.allow to allow access to rpcbind on NFS server:

# vi /etc/hosts.allow
rpcbind: ALL

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. What are Shell Scripts? How to Create Shell Scripts?
  2. Nginx load balancing
  3. Bind to port 22 on 0.0.0.0 failed: address already in use – error while starting sshd service CentOS/RHEL
  4. 18 Practical tcpdump Command Examples – A Network Sniffer Tool Primer
  5. How to allow only specific non-root user(s) to use crontab
  6. How to Manage Virtual Machines from the CentOS/RHEL 8 Web Console-Cockpit
  7. mpstat Command Examples in Linux
  8. CentOS / RHEL : How to Enable SSL For Apache
  9. file Command Examples in Linux
  10. CentOS / RHEL : How to create and host yum repository over httpd

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright