Problems with UBUNTU mounting NFS share from FreeBSD

Bill Moran wmoran at collaborativefusion.com
Sun Dec 24 06:45:06 PST 2006


stan <stanb at 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 at 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


More information about the freebsd-questions mailing list