Koozali.org: home of the SME Server

My Sane installation is now working

Offline sataury

  • *
  • 6
  • +0/-0
My Sane installation is now working
« on: October 07, 2008, 11:38:13 PM »
I have installed sane backend on my SME server in order to share my scanner ( an old but very good Agfa Snapscan 1212U with my laptop.
I've got several difficulties to have it working totally :
- when I was disconnecting / powering off the scanner it was no more working
- seems that sane was stopping after several hours, and then it was no more possible to have access to the scanner

Browsing accross the web, I have discovered that for some scanners, there may have some access rights problems to usb scanners.
My problem was there : the smeserver-sane contrib use by default a user for sane service that is saned / group saned. However this user don't have corrects rights on my usb scanner. If changing it to root / root, all these problems seems to disappear. I have not extensively tested but seems to be far better.
I imagine that using root user is not a good idea regarding to security, but I didn't find another solution at that time.

For those people who have a similar problem, try to modify file :
  pico /etc/e-smith/templates/etc/xinetd.conf/20sane-port
Then modify user and group name to 'root' :
   service sane-port
   {
   port = 6566
   socket_type = stream
   protocol = tcp
   user = root
   group = root
   wait = no
   server = /usr/sbin/saned
   }
and type following command :
  /sbin/e-smith/expand-template /etc/xinetd.conf

I will be happy if this can help someone in the same situation...

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: My Sane installation is now working
« Reply #1 on: October 08, 2008, 02:00:57 AM »
Thank you

please create a bug, saned user/group should have been created automatically in the smeserver-saned rpm