From owner-freebsd-questions@FreeBSD.ORG Fri Aug 11 01:51:32 2006 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 63F2516A4E7 for ; Fri, 11 Aug 2006 01:51:32 +0000 (UTC) (envelope-from ajm91qw@sbcglobal.net) Received: from smtp102.sbc.mail.mud.yahoo.com (smtp102.sbc.mail.mud.yahoo.com [68.142.198.201]) by mx1.FreeBSD.org (Postfix) with SMTP id 85F8243D81 for ; Fri, 11 Aug 2006 01:51:19 +0000 (GMT) (envelope-from ajm91qw@sbcglobal.net) Received: (qmail 12219 invoked from network); 11 Aug 2006 01:51:17 -0000 Received: from unknown (HELO localhost) (ajm91qw@sbcglobal.net@70.132.205.108 with plain) by smtp102.sbc.mail.mud.yahoo.com with SMTP; 11 Aug 2006 01:51:16 -0000 Date: Thu, 10 Aug 2006 20:52:30 -0500 From: ajm To: freebsd-questions@freebsd.org Message-ID: <20060811015230.GA1142@powerfull.bsd> References: <200608071755.57239.bob@tania.servebbs.org> <200608092304.22781.bob@tania.servebbs.org> <200608092346.47577.bob@tania.servebbs.org> <44DBB5EE.3010906@childeric.freeserve.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44DBB5EE.3010906@childeric.freeserve.co.uk> User-Agent: Mutt/1.5.11 Subject: Re: Mount Point permissions 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: Fri, 11 Aug 2006 01:51:32 -0000 On Thu, Aug 10, 2006 at 11:40:46PM +0100, Chris Whitehouse wrote: > Bob Richards wrote: > >On Wednesday 09 August 2006 23:23, you wrote: > > > >>>What about chowning the permissions on /dev/fd0 to be root:floppyusers, > > > >I went so far as chown bob:bob /dev/fd0 But after newfs get's through with > >the new floppy, it's chowned to root. > > > >>add a group floppyusers to /etc/group and make bob a member of that group. > >>Chmod 664 /dev/fd0 > > > >Went down that road as well; created a group called "mounters", added bob > >to it.... no good! I even copied newfs to /home/bob/bin, put home/bob/bin > >first in the PATH, made that newfs setuid/setgid bob no effect :-( Root > >wants to own the newly created file system no matter who formatted or > >created it. > > > >>Unfortunately I don't have any machines with floppy drives to test with. > > > >I personally don't have a need for floppy drives either; but I am setting > >up a dozen W/S to replace WINDOWZ in an office environment, and people > >expect to be able to use their floppies (especially with the GUI tools in > >KDE 3.5). I am hoping to use freebsd instead of Linux; which has become > >hard to maintain in long-term use because of things like libraries > >changing so often. The lack of "Library-Hell" in freebsd is refreshing. > > > >I guess "floppy-hell" is better than Library-hell :-) Floppy support is > >pretty bad on freebsd! I made the mistake of ejecting a mounted floppy > >yesterday; total system lock-up! I mean it was power off/on time! Not good! > > > >Bob > > > >_______________________________________________ > >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" > > > > > > > I wonder if these will help > > http://caia.swin.edu.au/reports/041130A/ > http://networking.ringofsaturn.com/Unix/FreeBSD-Burning.php > > I am sure there is also something in the handbook or FAQ but I can't > spot it at the mo. > > Also consider x11-fm/mtoolsfm. This is a graphical utility that allows > copying files between hard disk, floppy disk and usb key _without_ > mounting the removeable drives. It is limited to fat or fat32 > filesystems but it does mean your users won't crash the box when they > yank the usb key or floppy without unmounting. > > I've got this all set up on one box, including cd/dvd burning but it > would take a bit of digging to find all the bits. Email me offlist if > you want my devfs.rules and snips from other files. > > Chris I am using floppies on rare occasions on an old Dell. My setup is as follows: /etc/fstab does not have any reference to /dev/fd0 in the /usr/local/etc/sudoers file I have the following: # User privilege specification root ALL=(ALL) ALL aj ALL=/sbin/umount,/sbin/mount_msdosfs # end of sudoers file I have a directory with file permission 755 aj:aj /usr/home/aj/floppy ( make sure all your users have a directory call floppy with the correct file permission ) I use a small script owned by root but may be executed by all inside this script is a small message tell you it will be mounting a floppy and it must not be copy-protected next is the following line: sudo mount_msdosfs /dev/fd0 ~/floppy Now I use fluxbox...but this can be adapted to KDE withing the fluxbox menu I added the following: aterm -fg white -bg black -e name_of_script.sh ( note: I am using aterm not xterm...but should work xterm -e name_of_script.sh ) make another script to unmount with the following command sudo umount /dev/fd0 Have fun with FreeBSD... -- FreeBSD 6.0 i386 GENERIC