From owner-freebsd-questions@FreeBSD.ORG Tue Aug 23 01:03:51 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 6DDE116A41F for ; Tue, 23 Aug 2005 01:03:51 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id A05E143D45 for ; Tue, 23 Aug 2005 01:03:50 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 23 Aug 2005 01:03:48 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp001) with SMTP; 23 Aug 2005 03:03:48 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org, Eric Murphy Date: Tue, 23 Aug 2005 03:03:13 +0200 User-Agent: KMail/1.8.1 References: <28830225.1124758310311.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net> In-Reply-To: <28830225.1124758310311.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4052168.1LESgn7HTm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508230303.32000@harrymail> X-Y-GMX-Trusted: 0 Cc: 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:03:51 -0000 --nextPart4052168.1LESgn7HTm Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Dienstag, 23. August 2005 02:51 CEST schrieb Eric Murphy: > Hey guys... > > Ive setup a NFS correctly (I think) on my BSD 5.4 box > > Added > > nfs_enable_enable=3D"yes" > rpcbind_enable=3D"yes" > portmap_enable=3D"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=3D1001 > > 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... Hmm, at first it is...=20 You cannot mount filesystems (even not NFSs) as regular user. Well, you=20 can, but you have to be the owner of the mountpoint directory and have set= =20 (as superuser or during startup (/etc/sysctl.conf)) the sysctl=20 vfs.usermount to 1. The '-maproot=3DSOMEID' is for the NFS server which tells him to what useri= d=20 incoming ID=3D0 requests will be mapped. Usually you don't want to let=20 everybody who identifies him as ID=3D0 erase your root file system! So User= =20 ID=3D0 is invalid in NFS until you map it to any other (or the same) ID! Hope this helps, =2DHarry > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --nextPart4052168.1LESgn7HTm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDCnXiBylq0S4AzzwRAssCAJ9swkrMfQMqHgizbOcyLujrypLurwCfYczS C37QV0cBNt5Ty5LqXKpzbGM= =LRMb -----END PGP SIGNATURE----- --nextPart4052168.1LESgn7HTm--