RPC:Authentication error; why=Client credential too weak

I have use Centos6.3. Whan I try to running a program, I get error message like this :

RPC:Authentication error; why=Client credential too weak

I have installed rpcbind, but this error message showed again. The simple method how to solve this problem is look at rpcbind manual. You can type at konsole or terminal with command man rpcbind and get info message like this :

RPCBIND(8)                BSD System Manager’s Manual               RPCBIND(8)

     rpcbind - universal addresses to RPC program number mapper

     rpcbind [-adhiLls]

     -i      “Insecure” mode.  Allow calls to SET and UNSET from any host.  Normally rpcbind accepts these requests only from the loopback interface
             for security reasons.  This change is necessary for programs that were compiled with earlier versions of the rpc library and do not make
             those requests using the loopback interface.


So, we can remove this error message with add -i parameter at /etc/init.d/rpcbind file. Open /etc/init.d/rpcbind and search text like below  :

        echo -n $"Starting $prog: "
        daemon $prog $1 "$RPCBIND_ARGS"

Add parameter -i when start this init script. So, the modified script like this :

        echo -n $"Starting $prog: "
        daemon $prog $1 -i "$RPCBIND_ARGS"

The final step is restart the rpcbind script  with command :

/etc/init.d/rpcbind restart

This method would remove all error message RPC:Authentication error; why=Client credential too weak.

Add a Comment

Your email address will not be published. Required fields are marked *