SCANNING ON OPENBSD WITH SANE, AS NON-ROOT USER
foreword: wanted to put this guide somewhere install sane: # pkg_add sane plug in the scanner, and immediately after, run this command: # dmesg | tail -20 ugen0 at uhub0 port 3 "<scanner name>" the output should appear as above now take a note of the number after 'ugen' and the number after 'uhub'. in this example that number is 0 for both. now to get a bit more info on the hardware, run: # usbdevs Controller /dev/usb0: addr 01: ____ addr 02: XXXX:YYYY <scanner name> the output should appear as above so say we want to scan as the user 'theo', then theo needs access to both /dev/usb0 as well as /dev/ugen0.00 so execute the following command # chgrp theo /dev/ugen0.* /dev/usb0 # chmod g+rwx /dev/ugen0.* /dev/usb0 now run, as theo: $ scanimage -L device '____:libusb:000:002' is a <scanner name> scanner the output should now show the scanner, as above to scan: $ scanimage -d '____:libusb:000:002' -f jpeg --mode Color to get scanner-specific options: $ scanimage -h