From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e8cabb15188dd469,start X-Google-Attributes: gidfee84,public From: Steffen Neumann Subject: Accessing SCSI scanner w/o suid or /dev/cam o+rw Date: 1999/12/10 Message-ID: #1/1 X-Deja-AN: 558979285 Sender: sneumann@liszt.TechFak.Uni-Bielefeld.DE X-Trace: 10 Dec 1999 14:08:55 +0200, liszt.techfak.uni-bielefeld.de Organization: Technical Faculty, University of Bielefeld Content-Type: text/plain; charset=US-ASCII Mime-Version: 1.0 (generated by tm-edit 7.106) Newsgroups: comp.unix.osf.osf1 Hi! We'd like to attach a scanner to one of our workstations. Thing sare basically fine, the scanner can be attached and there is sane (www.mostang.com/sane/) talking to the scanner. The problem is that sane uses the common access method via the device /dev/cam. A user would need rw access to it. That's fine for testing, but in a serious environment you don't want neither a suid/sguid on the scan binary, nor rw access for the world on /dev/cam. (How fast can you make your copy of /bin/sh suid root if you have full rw access to the scsi subsystem, incl. your system disk ?!) Is there a way to have a single generic SCSI device on the bus read/writable for users, similar to BSD /dev/pass0 or Linux /dev/sg0 ? Is there anything else to disallow users to do havoc with /dev/cam ? Is there any idea I haven't thought of ? Thanks in advance for any ideas and/or pointers to documents, yours, Steffen