LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-16-2010, 01:43 PM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 387

Rep: Reputation: 61
Learning NFS - 'RPC Error: Authentication error.'


Hi,

I have two machines (Fedora 13 as server, Scientific Linux RHEL 5.1 as the client), one acting as the NFS server and one acting as the client. My config for the NFS server is as follows: -

/etc/exports
Code:
/usr/local/nfs 192.168.1.0/255.255.255.0(ro,sync)
/etc/hosts.allow
Code:
portmap: 192.168.1.0/24
lockd: 192.168.1.0/24
rquotad: 192.168.0/24
mountd: 192.168.0/24
statd: 192.168.0/24
/etc/hosts.deny
Code:
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
/etc/sysconfig/nfs
Code:
LOCKD_TCPPORT=48620
LOCKD_UDPPORT=48620
MOUNTD_PORT=48621
STATD_PORT=48622
STATD_OUTGOING_PORT=48623
RQUOTAD=no
RQUOTAD_PORT=48624
I have opened the following ports:-
Code:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 48620 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 48621 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 48622 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 48623 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 48624 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 2049 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 48620 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 48621 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 48622 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 48623 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 48624 -j ACCEPT
I start the following services on the NFS server: -
Code:
/etc/init.d/nfslock start
/etc/init.d/nfs start
/etc/rc.d/init.d/netfs start
and on the client, I try and connect to the NFS server with: -
Code:
# mount 192.168.1.60:/nfs /mnt/nfs
...and get the following error.
Code:
mount: mount to NFS server '192.168.1.60' failed: RPC Error: Authentication error.
What am I doing wrong? Not used NFS before.

Last edited by arashi256; 06-16-2010 at 01:45 PM.
 
Old 06-16-2010, 03:23 PM   #2
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 387

Original Poster
Rep: Reputation: 61
Ah, figured it - when mounting the NFS share on the client, you need to supply the *absolute* path to the share, like: -

mount -t nfs -o ro 192.168.1.60:/usr/local/nfs /mnt/nfs

Phew!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debian lenny nfs RPC Error marv Linux - Software 4 05-11-2010 07:20 AM
Unable to NFS mount .ERROR (mount: RPC: Remote system error - Connection timed) pabba Linux - Networking 3 05-06-2010 12:09 PM
Could Large file Size cause "RPC: Authentication error" with NFS server mount VWrestle97 Linux - Server 3 10-09-2009 06:32 PM
NFS RPC error msg granny Linux - Networking 2 12-13-2007 05:28 AM
NFS - RPC Error ashlesha Linux - Software 2 11-13-2006 12:16 PM


All times are GMT -5. The time now is 07:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration