From owner-freebsd-newbies@FreeBSD.ORG Tue Apr 15 11:31:33 2003 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E3C137B401 for ; Tue, 15 Apr 2003 11:31:33 -0700 (PDT) Received: from thor.acuson.com (ac17859.acuson.com [157.226.71.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id D19D843FA3 for ; Tue, 15 Apr 2003 11:31:31 -0700 (PDT) (envelope-from DavidJohnson@Siemens.com) Received: from mvaexch02.acuson.com (mvaexch02.acuson.com [157.226.230.209]) by thor.acuson.com (iPlanet Messaging Server 5.2 (built Feb 21 2002)) with ESMTP id <0HDE001JPE3KAS@thor.acuson.com> for freebsd-newbies@FreeBSD.org; Tue, 15 Apr 2003 11:30:56 -0700 (PDT) Received: by mvaexch02.acuson.com with Internet Mail Service (5.5.2653.19) id ; Tue, 15 Apr 2003 11:21:29 -0700 Received: from dhcp-46-117.acuson.com ([157.226.46.117]) by mvaexch01.acuson.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id GNSX3B3N; Tue, 15 Apr 2003 11:23:00 -0700 Content-return: allowed Date: Tue, 15 Apr 2003 11:31:08 -0700 From: Johnson David In-reply-to: <200304150900.59043.epbox@yandex.ru> To: epbox@yandex.ru Message-id: <200304151131.08655.DavidJohnson@Siemens.com> Organization: Siemens Medical Systems MIME-version: 1.0 Content-type: text/plain; charset=koi8-r Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.5.1 References: <200304141536.05035.a.carter@intrasoft.lu> <200304141104.52180.DavidJohnson@Siemens.com> <200304150900.59043.epbox@yandex.ru> cc: freebsd-newbies@FreeBSD.org Subject: Re: /dev/... X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 18:31:33 -0000 On Monday 14 April 2003 10:00 pm, Vladik Kozin wrote: > Hi! What if I'd like ordinary users to be able to mount /dev/fd0, for > instance, onto a common dir located in /mnt (/mnt/floppy)? > I made mkdir -m 755 /mnt/floppy as root. When I try to mount fd0 onto > this dir as an ordinary user I get "msdos: /dev/fd0: Operation not > permitted" while when doing the same onto a dir that this user owns > everything goes fine. I won't give a technical answer, since this isn't -questions, but I'll say a few words about it. First of all, the user needs to be the owner of the mount point. Having rwx permissions or a group member is not enough. This is why you need to have a mount point in your home directory. Now for the big question. Why? Because a multi-user system cannot let a user arbitrarily mount and unmount the resources that may be used by other users. Imagine if the user wants to take their floppy and go home for the day, but someone else is still writing a file to it. A floppy you can at least eject and worry about recovering the corrupted data later. But a CDROM you won't even be able to eject, let along unmount. David