From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 15:03:42 2003 Return-Path: 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 2997216A4BF for ; Fri, 29 Aug 2003 15:03:42 -0700 (PDT) Received: from pd6mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB03443FE3 for ; Fri, 29 Aug 2003 15:03:40 -0700 (PDT) (envelope-from desmond.lee@shaw.ca) Received: from pd3mr2so.prod.shaw.ca (pd3mr2so-ser.prod.shaw.ca [10.0.141.178])2003))freebsd-questions@freebsd.org; Fri, 29 Aug 2003 16:00:46 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca (pn2ml5so-qfe0.prod.shaw.ca [10.0.121.149]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKE0092PIHAK5@l-daemon> for freebsd-questions@freebsd.org; Fri, 29 Aug 2003 16:00:46 -0600 (MDT) Received: from croydon (h24-83-94-81.vs.shawcable.net [24.83.94.81]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKE00BM5IH18F@l-daemon> for freebsd-questions@freebsd.org; Fri, 29 Aug 2003 16:00:46 -0600 (MDT) Date: Fri, 29 Aug 2003 15:00:37 -0700 From: Desmond Lee In-reply-to: <44smnkp9uw.fsf@be-well.ilk.org> To: 'Lowell Gilbert' Message-id: <000801c36e78$fda8e0e0$6501a8c0@croydon> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.2616 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal cc: freebsd-questions@freebsd.org Subject: RE: allowing non root users to mount X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 22:03:42 -0000 Hello Thank you for your reply. I don't understand how editing /etc/fbtab will help me provide a mounting point that is accessible to everyone. I believe that fbtab will just set the permissions of the device to whatever is specified in that file. For example, if I have the following in the /etc/fbtab file: /dev/ttyV0 0700 /dev/fd0 then upon login, the floppy device (/dev/fd0) will have the permission: rwx------ So, how does this relate to making a common mounting point? I want to make the common mounting point /floppy and set the permissions to rwxrwxrwx by doing a 'chmod 777 /floppy' but for some reason I still cannot mount the floppy as a regular user. It keeps on telling me that 'operation not permitted' and I have to su as root to get this to work. Why is this so? Shouldn't it be okay since I've set the permission of /floppy to be accessible to anyone? Thanks Desmond -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Lowell Gilbert Sent: Friday, August 29, 2003 12:01 PM To: Desmond Lee Cc: freebsd-questions@freebsd.org Subject: Re: allowing non root users to mount Desmond Lee writes: > I followed the instructions on the FAQ section about making non-root > users able to mount file systems and that worked fine, but it only works > if the target of the mounting point is accessible by that user. Right. You want that for security reasons. > So, 'mount -t msdos /dev/fd0 ~/myFloppy' > > would only work if ~/myFloppy was a directory that was accessible by the > user who executed the mount command. Thus, if you were a non-root user > the stuff in the /etc/fstab would not be useful since the target of the > mount commands were only accessible by the root. Make the common mount point accessible to the console user. fbtab(5) (or xdm's 'GiveConsole' script, etc.) will help here. _______________________________________________ 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"