Re: SANE and AIX

David Mosberger-Tang (davidm@azstarnet.com)
Sun, 6 Jul 1997 09:27:06 -0700

>>>>> On Sun, 6 Jul 1997 12:48:08 +0200, Rogan Dawes <rdawes@jhbelec.co.za> said:

Rogan> Well, I managed to do a SCSI enquiry, without having to
Rogan> define a device especially for the purpose, but the program
Rogan> had to be run as root.

Great news!

Rogan> This was because I needed permission to open the host
Rogan> adapter. I confess that I don't see any clean way around
Rogan> this. I guess that I will have to try to write some kind of
Rogan> stub device that will accept SCSI commands and return the
Rogan> results using the IOCTL mechanism. Sounds like fun.

Another option is to use saned. As long as saned has access and the
hostname of a user is listed in /usr/local/etc/saned.conf, then the
user will be able to access the scanner. Avoiding setuid problems was
one of the reasons to write saned, btw.

I don't think I'd recommend that for development, but once the AIX
support works, it should provide a clean solution.

--david

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com