From owner-freebsd-questions@FreeBSD.ORG Tue Aug 23 01:09:30 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A111516A41F for ; Tue, 23 Aug 2005 01:09:30 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BEBE43D46 for ; Tue, 23 Aug 2005 01:09:22 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j7N19BtO035182; Mon, 22 Aug 2005 20:09:17 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <430A772F.103@daleco.biz> Date: Mon, 22 Aug 2005 20:09:03 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050709 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Murphy References: <28830225.1124758310311.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net> In-Reply-To: <28830225.1124758310311.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: NFS question... 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: Tue, 23 Aug 2005 01:09:30 -0000 Eric Murphy wrote: >Hey guys... > >Ive setup a NFS correctly (I think) on my BSD 5.4 box > >Added > >nfs_enable_enable="yes" >rpcbind_enable="yes" >portmap_enable="yes" > >in my rc.conf > >and its seems to be working... > >My question is this.. > >I can mount the shares without anyproblems as root... > >I CAN NOT mount them as a user... > >Now I added my UID (1001) to my SERVER's exports file with -maproot=1001 > >Am i understaning this correctly that by adding that line in the config >it gives me read/write access to the files on the SERVER? that does >NOT allow me to mount the File system..? > >My user is able to read/wirite to the files with no problems.. > >sorry if thats alittle confuseing... > > Your understanding is correct. If I chmod my $HOMEDIR to 777, then you can read/write to it. But, if I export it via /etc/exports (NFS), you can't mount it unless you're root. Expected behavior, seems to me, in light of my experience with 'Nixes. I don't know if the sysctl "vfs.usermount" would apply in the case of NFS or not; it does for floppies and CDROM's, I think. You might try it; good luck! Kevin Kinsey