On 2021-03-08, Duncan Patton a Campbell <campb...@neotext.ca> wrote:
>
>
> this is what I use
>
> doas -u root scanimage --mode gray  -x215 -y297 --resolution 300dpi -B > 
> fdsa.pnm
>
> which works with the perms asis.  xsane only worked as root for me 
> (across multple platforms/revs) so it's always been something that 
> needed a lot of setup/takedown to use.

So you could open up access in a targetted way to the relevant device,
which could just be done for a short period while scanning if you want
(just write a little wrapper script to make it easier), but instead you
prefer to avoid touching permissions and run code from sane-backends
plus these libraries as root:

WANTLIB += ${COMPILER_LIBCXX} c execinfo iconv jpeg lzma m png
WANTLIB += tiff usb-1.0 v4l1 v4l2 v4lconvert xml2 z zstd                        
 

(or a bunch more, for xsane).

I'm not really surprised (I thought this was exactly what would happen
when the default permissions on usb devices were tightened) but it
doesn't seem the best way..


Reply via email to