From owner-freebsd-questions@FreeBSD.ORG Sun Dec 24 14:45:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 57CB416A40F for ; Sun, 24 Dec 2006 14:45:06 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 0450E13C490 for ; Sun, 24 Dec 2006 14:45:05 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from working (c-71-60-174-60.hsd1.pa.comcast.net [71.60.174.60]) (AUTH: LOGIN wmoran, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Sun, 24 Dec 2006 09:34:56 -0500 id 0005641B.458E9010.000040B1 Date: Sun, 24 Dec 2006 09:34:55 -0500 From: Bill Moran To: stan Message-Id: <20061224093455.686e7686.wmoran@collaborativefusion.com> In-Reply-To: <20061224135048.GA32402@teddy.fas.com> References: <20061224135048.GA32402@teddy.fas.com> Organization: Collaborative Fusion Inc. X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Free BSD Questions list Subject: Re: Problems with UBUNTU mounting NFS share from FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Dec 2006 14:45:06 -0000 stan 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