[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Advice packaging jazip (suid!!)



robbie@scot-mur.demon.co.uk wrote:

> Couldn't jazip be setgid to disk?

Probably, but I'd need to change group permission on the jaz/zip scsi
device to `rw'.  By default it's only `r' (on my system anyway).

$ ls -l /dev/sda
brw-r-----   1 root     disk       8,   0 May 19  1997 /dev/sda

Would it be okay for me to write a jazip configuration script that did
that?  Is a package allowed to do that?

What I might wind up doing anyway is moving the jazip executable to
/usr/lib/jazip/jazip and create a /usr/bin/jazip script to call it with the
right device, e.g.:

 #!/bin/sh
 /usr/lib/jazip/jazip /dev/sdc "$@"

So I'll need a configuration script to prompt the user for the scsi device
to use, using parsed /proc/scsi/scsi as an initial guess.  At the same time
I can change the permissions on the scsi device (I don't really know how
I'll implement changing them back!)
-- 
Peter Galbraith, research scientist          <GalbraithP@dfo-mpo.gc.ca>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
    6623'rd GNU/Linux user at the Counter - http://counter.li.org/ 



Reply to: