Date: Tue, 26 Aug 1997 12:07:41 -0400 From: Randall Hopper <rhh@ct.picker.com> To: Parrish Myers <parrish@engr.arizona.edu> Cc: Doug White <dwhite@resnet.uoregon.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: Zip Drive Message-ID: <19970826120741.11943@ct.picker.com> In-Reply-To: <19970826104548.11175@ct.picker.com>; from Randall Hopper on Tue, Aug 26, 1997 at 10:45:48AM -0400 References: <Pine.OSF.3.95.970818163138.5547A-100000@engr.arizona.edu> <Pine.BSF.3.96.970825223840.3179U-100000@localhost> <19970826104548.11175@ct.picker.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970826120741.11943>