From owner-freebsd-questions Fri Aug 4 17:29: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id 8856837B608 for ; Fri, 4 Aug 2000 17:28:58 -0700 (PDT) (envelope-from dima@static.unixfreak.org) Received: by static.unixfreak.org (Postfix, from userid 1000) id 2E3D71F18; Fri, 4 Aug 2000 17:28:58 -0700 (PDT) Subject: Re: What am I missing? ( NFS ) In-Reply-To: <398B1055.F63AD5B4@el.com.br> from Gilson de Paiva at "Aug 4, 2000 03:49:57 pm" To: npd@el.com.br Date: Fri, 4 Aug 2000 17:28:58 -0700 (PDT) Cc: freebsd-questions@freebsd.org From: Dima Dorfman X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20000805002858.2E3D71F18@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi list, > I'm trying to set up a machine that will export a filesystem used to cvsup the FreeBSD and > it's ports source. > I've been reading the man pages and searching on the web and http://docs.freebsd.org/ but > couldn't find out a solution to these error messages: > > 1-) On a remote machine, the user root can issue a mount withou problems, only ordinary > users get the following: > > bash-2.03$ mount dialup:/usr/src /home/g-paiva/temp > nfs: can't update /var/db/mounttab for dialup:/usr/src > nfs: /usr/home/g-paiva/temp: Operation not permitted > bash-2.03$ > > 2-) Locally, again, root is allowed to mount, except other users: > > bash-2.03$ mount dialup:/usr/src /home/g-paiva/temp > nfs: /usr/home/g-paiva/temp: Operation not permitted > bash-2.03 Ordinary users are not supposed to be able to mount and unmount drives. Allowing them to do so will open up a very, very large security whole. What do you think will happen when somebody mounts a drive on /etc with their own configuration files on it? Hope this helps -- Dima Dorfman Finger dima@unixfreak.org for public PGP key. "Gravitation is not responsible for people falling in love." -- Albert Einstein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message