Difference between revisions of "Sane"

From Blue-IT.org Wiki

(2. Change the right for saned)
(4. Configure saned)
Line 21: Line 21:
 
  192.168.0.0/24
 
  192.168.0.0/24
  
On the client  edti ''/etc/sane.d/net.conf'' and add the servers IP or hostname
+
On the client  edit ''/etc/sane.d/net.conf'' and add the servers IP or hostname
 
  ## saned hosts
 
  ## saned hosts
 
  scanserver
 
  scanserver

Revision as of 09:18, 8 August 2010

Scanserver with saned under Ubuntu 10.04

Unfortunately there seems to be a bug in the inetd service under Ubuntu 10.04.

Therefore the configuration of saned scanserver had changed.

1. Install openbsd-inetd

sudo apt-get purge inetutils-inetd
sudo apt-get install openbsd-inetd

2. Change the rights for saned

sudo addgroup scanner
sudo usermod -G scanner -a saned

3. Configure inetd

Edit /etc/inetd.conf and add the following

sane-port       stream  tcp     nowait  root     /usr/sbin/saned saned

4. Configure saned

On the server edit /etc/sane.d/saned.conf according to your local network:

## Access list
192.168.0.0/24

On the client edit /etc/sane.d/net.conf and add the servers IP or hostname

## saned hosts
scanserver

5. Restart the service

sudo openbsd-inetd restart

That's it.

Beside the point wether it is secure to run saned as "root", this works!