LinuxQuestions.org
Review your favorite Linux distribution.
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 11-26-2012, 03:02 PM   #1
blackychan
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
mount.nfs: access denied by server while mounting


Hello all I have have set up several NFS before and I can not get past this error on this mount. here is what i have so far:

/etc exports
/share/voice 192.168.1.1/255.255.255.0(rw,sync)

iptables are disabled

/etc/hosts.allow
ALL:192.168.2.10

Client fstab
192.168.2.1:/share/voice /share/voice nfs rw,hard,intr 0 0

I am running this on RH
when I run a mount -v this is what I get
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Mon Nov 26 15:03:25 2012
mount.nfs: trying text-based options 'vers=4,addr=192.168.2.1,clientaddr=192.168.2.10'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.2.1:/share/voice/


Thanks in advance.

Last edited by blackychan; 11-26-2012 at 05:59 PM.
 
Old 11-26-2012, 03:59 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
You said your /etc/hosts.allow has 192.168.2.10 open, but then your client is trying to mount the NFS share on 192.168.2.10...?

What is the server IP and what is the client IP? What are the contents of /etc/hosts.allow on the server?

/etc/hosts.allow is used by the server to allow specific clients through, so it should be the client IP in there, not the server IP.
 
Old 11-26-2012, 04:40 PM   #3
blackychan
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
My apologies my server is 192.168.2.1 and client is 192.168.2.10
 
Old 11-26-2012, 04:47 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
So that's a typo in your fstab line then?
 
Old 11-26-2012, 04:54 PM   #5
blackychan
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes it was
 
  


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
mount.nfs access denied by server while mounting varmanravi20 Red Hat 2 08-02-2012 11:27 AM
mount.nfs access denied by server while mounting (OT) acid_kewpie Red Hat 5 08-01-2012 07:06 AM
mount.nfs: access denied by server while mounting DD554 Linux - Networking 1 05-08-2010 01:22 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 03:36 PM
mount.nfs: access denied by server while mounting mokrunka Linux - Networking 4 10-07-2008 01:53 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration