90bd NFS "Permission denied", why? - 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 July 14th, 2011, 20:05
mcgee mcgee is offline
Junior Member
 
Join Date: Oct 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default NFS "Permission denied", why?

I'm getting a "Permission denied" error on an NFS mount, but I'm completely mystified as to the reason. (I really wish mountd was a little more verbose with its error logging!) First, the server and client DO work, I have existing NFS exports that mount cleanly and work as expected. So that's not an issue. But I have one particular export that is not working at all, and I don't know why.

On the server, this is one line in my /etc/exports:
Code:
/ftp -ro -alldirs
/ftp is a symlink to /.nfs1/ftp, which is mode 755. Under /ftp is a partial FreeBSD distribution tree, today we want to mount this directory: /ftp/pub/FreeBSD/releases/i386/8.2-RELEASE

That 8.2-RELEASE directory is empty, used as a mount point for a vnode configured to point at an ISO file. So, we do this:
mount -t cd9660 /dev/`mdconfig -f /ftp/pub/FreeBSD/ISO/8.2-RELEASE-i386-disc1.iso` /ftp/pub/FreeBSD/releases/i386/8.2-RELEASE

The kicker is this: before I mount the vnode, my NFS client can cleanly mount the empty 8.2-RELEASE directory. After I mount the vnode, the client cannot mount it, and gets "Permission denied". I checked file modes on the server, and everyone has at least read access to everything involved here, and x on the directories.

What am I missing?

Last edited by DutchDaemon; July 15th, 2011 at 01:00. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old July 15th, 2011, 08:14
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

The directory in /ftp/pub/FreeBSD/releases/i386/8.2-RELEASE is a different filesystem and needs to be exported explicitly.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
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
Permission Denied neepie General 5 August 27th, 2010 14:11
Permission Denied for all my actions. Nezhus Networking 2 April 22nd, 2010 09:33
[Solved] Permission denied dimcick General 10 April 14th, 2010 10:47
[Solved] root -> permission denied ?!! nORKy Installation and Maintenance of FreeBSD Ports or Packages 19 September 10th, 2009 08:34
Permission Denied vjw757 Installation and Maintenance of FreeBSD Ports or Packages 5 July 5th, 2009 00:32


All times are GMT +1. The time now is 07:12.


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