Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Dec 2006 09:34:55 -0500
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        stan <stanb@panix.com>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: Problems with UBUNTU mounting NFS share from FreeBSD
Message-ID:  <20061224093455.686e7686.wmoran@collaborativefusion.com>
In-Reply-To: <20061224135048.GA32402@teddy.fas.com>
References:  <20061224135048.GA32402@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
stan <stanb@panix.com> wrote:
>
> I've got a 4.11-STABLE FreeBSD machine that I'd like to provide NFS
> services to some UBUNTU 6.10 machines. I've put the following in
> /etc/exports:
> 
> /usr /usr/local/www/data/pictures  -alldirs    -maproot=0  all
> 
> When I try to mount this, I get:
> 
> root@ubuntu:~# mount black:/usr /tmp/mnt
> mount: black:/usr failed, reason given by server: Permission denied
> 
> And I see the following in dmesg on the FreeBSD machine:
> 
> NFS request from unprivileged port (205.159.77.59:36731)
> nfsd send error 32
> 
> I thought that I rembered having to add an option to omethng (monthd ?) to
> allow it to prvide services on on privleged port, but the mountd man page
> does not seem to have such an option.
> 
> How can I amke this work?

>From the man page for mountd:

-n      Allow non-root mount requests to be served.  This should only be
        specified if there are clients such as PC's, that require it.  It
        will automatically clear the vfs.nfsrv.nfs_privport sysctl flag,
        which controls if the kernel will accept NFS requests from
        reserved ports only.

Alternatively, you can adjust the Ubuntu clients so they're trying to mount
the drives as root from the assigned port.

-Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061224093455.686e7686.wmoran>