• 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. “sudo: /etc/sudoers is world writable” – How to correct the permissions of sudoers file
  2. ifconfig Command Examples in Linux
  3. How to Disable Ctrl+c or Ctrl+z Using the “trap” Command in Linux
  4. How to Recover Corrupted Root Partition from Rescue Mode in CentOS/RHEL 5,6
  5. goaccess: command not found
  6. Linux File/Directory Permissions cheat sheet
  7. How to Setup VNC Server for New User in CentOS/RHEL 5
  8. jstest: command not found
  9. How to create an XFS Filesystem
  10. Linux OS Service ‘scsi_reserve’

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright