LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-12-2009, 11:09 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Permission Denied Error Message when trying to mount an NFS share


Hi there --

I am unable to get an NFS share to mount on our systems. The servers and clients are all Fedora Core 2 systems. When an attempt is made to mount a share that is supposedly exported by the server, a Permission Denied error message appears on-screen.

The /etc/exports file on the exporting server has the following entries:

Code:
/apps   132.183.220.0/24(no_root_squash,rw,nohide)
/apps   132.183.12.115(no_root_squash,rw,nohide)
/apps   132.183.12.11(no_root_squash,rw,nohide)
/apps2  132.183.12.115(no_root_squash,rw,nohide)
/apps2  132.183.12.11(no_root_squash,rw,nohide)
The exportfs -rav command has the following output:

Quote:
exportfs: /etc/exports [1]: No 'sync' or 'async' option specified for export "132.183.220.0/24:/apps".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [2]: No 'sync' or 'async' option specified for export "132.183.12.115:/apps".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [3]: No 'sync' or 'async' option specified for export "132.183.12.11:/apps".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [4]: No 'sync' or 'async' option specified for export "132.183.12.115:/apps2".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [5]: No 'sync' or 'async' option specified for export "132.183.12.11:/apps2".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exporting rtp41.mgh.harvard.edu:/apps2
exporting rtp60.mgh.harvard.edu:/apps2
exporting rtp41.mgh.harvard.edu:/apps
exporting rtp60.mgh.harvard.edu:/apps
exporting 132.183.220.0/24:/apps
By all accounts the clients should be able to mount the fileshares in question. However, when the attempt is made, it fails. The output from an attempt made by a client on the 220 subnet is as follows:
Quote:
[admin@rtp34 admin]$ sudo mount pxio1:/apps /mnt/apps
Password:
mount: pxio1:/apps failed, reason given by server: Permission denied
A check of the /var/log/messages file on the server has the following entry:

Quote:
pxio1 rpc.mountd: refused mount request from rtp34.mgh.harvard.edu for /apps (/): not exported
The server thinks the directory in question is not exported, which is contrary to what is listed in the exports file. I have verified that the nfs and nfslock services are running on the server, and that the firewall has been deactivated as well. The DNS service is also configured and running. This has been confirmed by running nslookup on several hosts that are supposed to be able to mount the NFS shares, and getting the correct hostnames with their appropriate addresses.

What am I missing here, and what do I need to do in order to correct it? Thanks.
 
Old 02-14-2009, 07:26 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Hi,
you say that the firewall is turned off, but have you listed the relevant ip addresses in /etc/hosts.allow ?

portmap: 132.183.220.0/24 , 132.183.12.115 , 132.183.12.11
lockd: 132.183.220.0/24 , 132.183.12.115 , 132.183.12.11
rquotad: 132.183.220.0/24 , 132.183.12.115 , 132.183.12.11
mountd: 132.183.220.0/24 , 132.183.12.115 , 132.183.12.11
statd: 132.183.220.0/24 , 132.183.12.115 , 132.183.12.11

I would read the /var/log/messages entry you quoted as meaning that the server has not exported the share because it has not had a valid request. The export does exist, and will be available to a valid client.
 
  


Reply



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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Permission denied trying to mount nfs share leupi Linux - Networking 1 07-30-2007 01:32 AM
nfs share: permission denied Kropotkin *BSD 11 01-10-2007 08:15 AM
NFS mount: Permission denied toreric Linux - Networking 15 03-03-2006 11:33 AM
Mounting an nfs share - Permission Denied doctorwebbox Linux - Networking 5 05-30-2005 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:02 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
Open Source Consulting | Domain Registration