NFS "Permission denied", why?

Discussion related to network/web services such as Apache, BIND Sendmail, etc.

NFS "Permission denied", why?

Postby mcgee » 14 Jul 2011, 19:05

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 [FILE]/etc/exports[/FILE]:
Code: Select all
/ftp -ro -alldirs

[FILE]/ftp[/FILE] is a symlink to [FILE]/.nfs1/ftp[/FILE], which is mode 755. Under [FILE]/ftp[/FILE] is a partial FreeBSD distribution tree, today we want to mount this directory: [file]/ftp/pub/FreeBSD/releases/i386/8.2-RELEASE[/file]

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:
[CMD=""]mount -t cd9660 /dev/`mdconfig -f /ftp/pub/FreeBSD/ISO/8.2-RELEASE-i386-disc1.iso` /ftp/pub/FreeBSD/releases/i386/8.2-RELEASE[/CMD]

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?
Junior Member
Posts: 12
Joined: 20 Oct 2010, 03:03

Postby SirDice » 15 Jul 2011, 07:14

The directory in [file]/ftp/pub/FreeBSD/releases/i386/8.2-RELEASE[/file] 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.
User avatar
Old Fart
Posts: 16185
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Return to Web & Network Services

Who is online

Users browsing this forum: No registered users and 0 guests