11fba RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old March 30th, 2011, 15:38
mamalos mamalos is offline
Member
 
Join Date: Mar 2009
Location: Greece
Posts: 427
Thanks: 25
Thanked 43 Times in 42 Posts
Default RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak

Hi everybody,

this (the title of this thread) is the error I am getting from my NFS client when I try to mount a filesystem from my NFS server. On the server I get:
Code:
[tcp] 192.168.100.11:home: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
I am executing the command as root, and both server and client run a version of FreeBSD-8 (not the latest). $ shomount -e servershows the correct information. If I start mountd with the -n option (on the server), then everything works just fine.

tcpdump shows that the client connects from an unprivileged port, indeed, which worries me.

Is there a way to understand why my client tries to mount remote filesystems using a non-privileged port, even though the mount command is executed as root?

For the POC, I switched the roles of server and client, and I had exactly the same problem.

I know I am missing something easy on this, but my head is stuck. If anyone can help, it would be really great!

Thank you all in advance.
Reply With Quote
  #2  
Old March 30th, 2011, 16:20
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

It's probably rpcbind. What does # rpcinfo server tell you?
Are mountd and nfs properly registered? Do you set any flags for rpcbind, mountd and/or nfsd?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old March 31st, 2011, 12:05
mamalos mamalos is offline
Member
 
Join Date: Mar 2009
Location: Greece
Posts: 427
Thanks: 25
Thanked 43 Times in 42 Posts
Default

SirDice,

Thank you for your answer. Here is what rpcinfo shows:
Code:
 # rpcinfo server
   program version netid     address                service    owner
    100000    4    tcp       0.0.0.0.0.111          rpcbind    superuser
    100000    3    tcp       0.0.0.0.0.111          rpcbind    superuser
    100000    2    tcp       0.0.0.0.0.111          rpcbind    superuser
    100000    4    udp       0.0.0.0.0.111          rpcbind    superuser
    100000    3    udp       0.0.0.0.0.111          rpcbind    superuser
    100000    2    udp       0.0.0.0.0.111          rpcbind    superuser
    100000    4    tcp6      ::.0.111               rpcbind    superuser
    100000    3    tcp6      ::.0.111               rpcbind    superuser
    100000    4    udp6      ::.0.111               rpcbind    superuser
    100000    3    udp6      ::.0.111               rpcbind    superuser
    100000    4    local     /var/run/rpcbind.sock  rpcbind    superuser
    100000    3    local     /var/run/rpcbind.sock  rpcbind    superuser
    100000    2    local     /var/run/rpcbind.sock  rpcbind    superuser
    100003    2    udp       0.0.0.0.8.1            nfs        superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100003    2    udp6      ::.8.1                 nfs        superuser
    100003    3    udp6      ::.8.1                 nfs        superuser
    100003    2    tcp       0.0.0.0.8.1            nfs        superuser
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    2    tcp6      ::.8.1                 nfs        superuser
    100003    3    tcp6      ::.8.1                 nfs        superuser
    100005    1    udp6      ::.2.108               mountd     superuser
    100005    3    udp6      ::.2.108               mountd     superuser
    100005    1    tcp6      ::.2.108               mountd     superuser
    100005    3    tcp6      ::.2.108               mountd     superuser
    100005    1    udp       0.0.0.0.2.108          mountd     superuser
    100005    3    udp       0.0.0.0.2.108          mountd     superuser
    100005    1    tcp       0.0.0.0.2.108          mountd     superuser
    100005    3    tcp       0.0.0.0.2.108          mountd     superuser
Excerpt from the server's /etc/rc.conf:
Code:
rpcbind_enable="YES"
mountd_flags="-nr"
nfs_server_enable="YES"
nfs_client_enable="YES"
mountd_enable="YES"
Excerpt from the client's /etc/rc.conf:
Code:
rpcbind_enable="YES"
mountd_enable="YES"
mountd_flags="-e"
rpc_statd_enable="YES"
rpc_lockd_enable="YES"
nfs_server_enable="YES"
nfs_client_enable="YES"
nfs_client_flags="-n 4"
nfsuserd_enable="YES"
gssd_enable="YES"
Excerpt from the server's kernel config file:
Code:
options 	NFSCLIENT		# Network Filesystem Client
options		NFSD			# NFSv4 server
options 	NFSLOCKD		# Network Lock Manager
options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
options		KGSSAPI			# Gia to kerberized NFS
device		crypto			# Epishs gia to kerberized NFS
Excerpt from the client's kernel config file:
Code:
options 	NFSCLIENT		# Network Filesystem Client
options 	NFSSERVER		# Network Filesystem Server
options 	NFSLOCKD		# Network Lock Manager
options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
options		KGSSAPI			# Gia to kerberized NFS
device		crypto			# Epishs gia to kerberized NFS
As you can see, my nfs client works as an nfs server too (using gssapi sec=krb5i exports). I've tried mounting the share from another FreeBSD client, and had the same results. Moreover, you can see that my server is built with nfs4 support, but I don't think that this is the problem, since trying to mount my client's nfs share from the another client machine (also FreeBSD) has the exact same results. Nonetheless, when I mount the same shares from my linux clients, it works (linux uses a privileged port).

Thanks again for your interest.
Reply With Quote
  #4  
Old April 1st, 2011, 07:18
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Try removing the mountd_flags on the server.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.

Last edited by DutchDaemon; April 1st, 2011 at 23:56.
Reply With Quote
  #5  
Old April 1st, 2011, 11:58
mamalos mamalos is offline
Member
 
Join Date: Mar 2009
Location: Greece
Posts: 427
Thanks: 25
Thanked 43 Times in 42 Posts
Default

SirDice,

I commented out mountd_flags and had the exact same result. Then I realized that mountd_flags is set to '-r' in /etc/defaults/rc.conf (which was also proved by ps axuww | grep -i mountd), so I removed it, with no luck either.

I don't know why this is happening, I'll test it again after I upgrade all my machines (after I back them up) to the latest version of FreeBSD and relative ports.

Thanks again.
Reply With Quote
  #6  
Old April 1st, 2011, 12:25
mamalos mamalos is offline
Member
 
Join Date: Mar 2009
Location: Greece
Posts: 427
Thanks: 25
Thanked 43 Times in 42 Posts
Default

SirDice,

one more thing that I think should be highlighted: It must be the client's fault, not the server's. As I stated on a previous message, my linux clients work fine (they're using a privileged port).
Reply With Quote
  #7  
Old August 12th, 2011, 07:11
Gkarfield Gkarfield is offline
Junior Member
 
Join Date: Apr 2009
Location: greece
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Default

hello mamalos

from fbsd 7.1 [client] I get connection with the server [ fbsd 8.1], the mount works fine.
But I decided before some days to built bsd inside bsd [virtual] and I get the same errror as you.

ftp works fine by the way.
----
I am a simple user [short of]
Reply With Quote
  #8  
Old August 12th, 2011, 22:14
qsecofr qsecofr is offline
Member
 
Join Date: Mar 2009
Location: PDX
Posts: 198
Thanks: 27
Thanked 8 Times in 8 Posts
Default

Any permissions discrepancies on the exported directory tree and the mount point on the client?

On the server, you can tell mountd which port to listen on with the "-p" option. The man page for mount_nfs suggests that the "-P" and "-N" options are obsolete.
Reply With Quote
  #9  
Old October 7th, 2011, 07:27
peetaur peetaur is offline
Member
 
Join Date: Sep 2011
Location: Geesthacht, Germany
Posts: 167
Thanks: 11
Thanked 13 Times in 13 Posts
Default

A NAT changes the port from the server's point of view so the server sees an insecure port. Perhaps you have the client behind a NAT?

In a Linux server, you can specify "insecure" in the options of the export line.

In FreeBSD, I read that you can add to rc.conf:
Code:
nfs_reserved_port_only="NO"
I tried that, and it has no effect.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] NFS RPCPROG_MNT: RPC: Timed out Steije Web & Network Services 16 February 22nd, 2012 00:24
[Solved] Failed to contact local NSM - rpc error 5 chazz Web & Network Services 6 October 7th, 2011 15:21
periodic daily (pam_acct_mgmt: authentication error) le4o360 General 12 January 18th, 2011 12:42
failed rpc error unable to receive errno connection refused tuntun Web & Network Services 0 May 12th, 2010 22:28
[Solved] SSL Credential Error? anthony911 Web & Network Services 3 September 2nd, 2009 18:41


All times are GMT +1. The time now is 14:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0