Permissions problem for sane
ac at acampbell.uk
Fri Aug 7 07:49:13 UTC 2015
On 06 Aug 2015, Patrick Hess wrote:
> Anthony Campbell wrote:
> > Should I modify the permissions on /dev/ugen0.2?
> In contrast to what many other people might suggest, I'm personally not
> a big fan of providing users broad access to all kinds of device nodes.
> So instead of messing around with permissions, I prefer to make use of
> the saned(8) network daemon.
> This is actually pretty straightforward to set up. You'll need to add
> these two lines to your /etc/rc.conf:
> Now either reboot the machine or run the following command to start
> the network daemon right away:
> # service saned start
> Then add the following line to /usr/local/etc/sane.d/net.conf:
> Any non-privileged user should now be able to access the scanner.
> For starters, try to get a list of scanners available on the server:
> > scanimage -L
> device `net:localhost:plustek:libusb:/dev/usb:/dev/ugen1.2'
> is a Canon CanoScan N1240U/LiDE30 flatbed scanner
> The nice part about using saned(8) is that you can easily make the
> scanner available to other machines on the network. Just add your
> network to the server's /usr/local/etc/sane.d/saned.conf and then
> add an entry for the server to the /usr/local/etc/sane.d/net.conf
> on each of the clients.
Thanks very much for this - yes, it works with scanimage -L and xsane,
which was the point of this exercise. I'm also grateful to everyone else
who has replied to this thread. I'd like to endorse Warren Block's
appeal to have this included in the Handbook; it would have saved me a
lot of time.
(Incidentally, sane-find-scanner seems to be buggy: it still doesn't
work as user, while as root it finds not only my Epson scanner but
another scanner which I don't have at all!)
Anthony Campbell http://www.acampbell.uk
More information about the freebsd-questions