From owner-freebsd-questions Tue Aug 26 11:12:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA27059 for questions-outgoing; Tue, 26 Aug 1997 11:12:50 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id LAA27051 for ; Tue, 26 Aug 1997 11:12:43 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Tue, 26 Aug 1997 12:10:55 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA00560; Tue, 26 Aug 97 12:10:52 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id MAA11876; Tue, 26 Aug 1997 12:07:41 -0400 Message-Id: <19970826120741.11943@ct.picker.com> Date: Tue, 26 Aug 1997 12:07:41 -0400 From: Randall Hopper To: Parrish Myers Cc: Doug White , freebsd-questions@FreeBSD.ORG Subject: Re: Zip Drive References: <19970826104548.11175@ct.picker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81 In-Reply-To: <19970826104548.11175@ct.picker.com>; from Randall Hopper on Tue, Aug 26, 1997 at 10:45:48AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Randall Hopper: |notation. I put my ZIP UFSs on slice 1. Makes it real easy to write a |safe, generic setuid "mountzip" script: | | mount -t msdos /dev/sd0s4 /zip || mount /dev/sd0s1 /zip | |"df /zip" tells you right off what FS type you've got in case you forget. I have to correct myself. This is the incantation I started with, and works fine if you're root. But I had to change it to: mount_msdos /dev/sd0s4 /zip || mount /dev/sd0s1 /zip because "mount -t msdos" seems to lose root when run in a setuid-root script in the process of handing off to "mount_msdos". This seems to be a bug. Anyway, running mount_msdos directly (as above) works in a setuid-root shell script. Randall