From owner-freebsd-questions Sat Nov 8 11:27:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA19795 for questions-outgoing; Sat, 8 Nov 1997 11:27:07 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA19786 for ; Sat, 8 Nov 1997 11:27:03 -0800 (PST) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (max4-102.HiWAAY.net [208.147.145.102]) by fly.HiWAAY.net (8.8.7/8.8.6) with ESMTP id NAA01037; Sat, 8 Nov 1997 13:26:29 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by nospam.hiwaay.net (8.8.7/8.8.4) with ESMTP id NAA01509; Sat, 8 Nov 1997 13:26:27 -0600 (CST) Message-Id: <199711081926.NAA01509@nospam.hiwaay.net> X-Mailer: exmh version 2.0zeta 7/24/97 To: Rich Winkel cc: freebsd-questions@FreeBSD.ORG From: dkelly@hiwaay.net Subject: Re: Permissions problem mounting floppy In-reply-to: Message from "Matthew D. Fuller" of "Sat, 08 Nov 1997 12:35:59 CST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 08 Nov 1997 13:26:26 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > On Sat, 8 Nov 1997, Rich Winkel wrote: > > > I'm running 2.2.5-STABLE. > > I can only mount floppies as root. As a regular user, I get: > > katy> mount_msdos /dev/fd0 /fd > > mount_msdos: /dev/fd0: Permission denied > > > Umm... AFAIK, that's correct. You SHOULD only be able to mount floppies > as root. Here's a look at my /dev: > {~} mortis:{107} %ll /dev/ | grep fd0 > brw-r----- 9 root operator 2, 0 Dec 31 03:19 fd0 > brw-r----- 1 root operator 2, 4 Dec 31 03:19 fd0.1200 > brw-r----- 1 root operator 2, 3 Dec 31 03:19 fd0.1440 > brw-r----- 1 root operator 2, 2 Dec 31 03:19 fd0.1480 > brw-r----- 1 root operator 2, 1 Dec 31 03:19 fd0.1720 > > Device files should NEVER be write for world. > If you really need users other than root and yourself (su) to be able to > mount floppies, I'd recommend installing sudo from the ports collect, and > allowing groups of people to sudo mount ..... Better yet (IMHO), "chmod g+w /dev/[r]fd0*" and add the users that need floppy access to the group "operator". Or make a group "floppy" and change the group of the floppy devices and add the users to "floppy". Will mount work for non-root? I don't know. Personally prefer to use mtools from the ports collection for dealing with DOS floppies. Mtools does everything mounting might do but it won't allow you to run from data on the floppy. You have to copy it off the floppy first. A lot like tar. Still another option would be to master amd and let it mount the floppies for you. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.