[Networking] Sharing a Unix* scanner

Last update on October 8, 2009 10:03 AM by jak58
Published by netty5

[Networking] Sharing a Unix* scanner







Here it is, you have purchased a wonderful scanner and you have got it to work under Linux. (This is not the purpose here: (

You can also post (s) in your Windows network.
You know that it is possible to share the scanner called through the network daemon saned and a Windows client?

Note: This configuration has been tested with Debian Sarge and Windows XP Pro.

I also tested two years ago with Mandrake 9. and Windows 98

johand @ horus: ~ $ sane dpkg-l * | grep ii 
ii sane 1.0.12-2 scanner graphical frontends 
ii sane-utils 1.0.14-7 API library for scanners - utilities 

Step 1


Configure saned

Edit /etc/sane.d/saned.users (the location of these files may vary depending on your distribution)

johand @ horus: /etc/sane.d $ cat saned.users 
user1: password: Mustek 
user2: autremotdepasse: unautre_scanner



Edit saned.conf to include IP / network with local access to the daemon (see file provided at installation)

Add an entry for the service saned (as here with inetd super daemon)

johand @ horus: ~ $ grep saned/etc/services
saned sane 6566/tcp # SANE network scanner daemon
johand @ horus: ~ $ grep saned/etc/inetd.conf
sane stream tcp nowait saned.saned/usr/sbin/saned saned


I also created a group saned and I changed the rights of the SCSI device:

johand @ horus: ~ $ sane-find-scanner 
found SCSI scanner "SCANNER 2.02" at /dev/sg4 
johand @ horus: ~ $ ls-l /dev/sg*|grep saned 
crw-rw ---- 1 root saned 21, 4 Aug 20 2003 /dev/sg4


Adding users to the group authorizes saned:

johand @ horus: ~ $ grep sane/etc/group 
saned: x: 104: user1, user2 


Restart inetd

horus: ~ # /etc/init.d/inetd restart 
Restarting internet SuperServer: inetd. 
(It is clear that the previous steps requièrenet rights uid = 0 root, toor ,...) 

Step 2-Windows client


Retrieve the customer on SaneTwain

http://sanetwain.ozuzo.net/
http://sanetwain.ozuzo.net/sanetwain126.zip

Explode the archive into the directory of your choice.
Read the documentation;)
Place in notemment SaneTwain.ds

% WINDIR%\twain_32
Launch Scanimage.exe
and ... roll youth.
The pilot sanetwain usually appears as a source Twain.
Good luck to all.
Note that there are other customers Twain for Windows.

Linux kernel 2.6
Under my Debian, I added the group "scanner", there is no problem accessing the device:

johand @ horus: ~ $ ls-l /dev/sg * 
crw-rw ---- 1 root scanner 21, 0 2005-06-21 10:29 /dev/sg0 
johand @ horus: ~ $ sane-find-scanner | grep found 
found SCSI scanner "SCANNER 2.02" at /dev/sg0
Best answers for « Sharing a Unix* scanner » in :
Sharing Internet connection using bridge mode ShowSharing Internet connection using bridge mode Sharing via bridge mode Installing bridge-utils Notes Internet connection can be shared with another computer if you have a free Ethernet port Sharing via bridge mode When using a...
Sharing a Printer ShowSharing a Printer Sharing a computer with printer server Sharing printer with a print server How to share a printer to make it accessible from any workstation with a Microsoft Windows NT/2000/XP: First, we must quickly...
[PS3] Sharing files / DLNA Server Show[PS3] Sharing files / DLNA Server How to share files between a Playstation 3 and PC Issue You want to establish a relationship with DLNA protocol between your PC and your PS3, including images, audio and video access to YouTube,...
File sharing in Windows XP ShowAdvantages File sharing involves making the content of one or more directories available through the network. All Windows systems have standard devices making it easy to share the content of a directory. However, file sharing may lead to security...
UNIX Commands ShowTable of the main UNIX commands Unix Commands Description Options ls lists the content of a directory -a Displays all files, including hidden files -I Displays a...
Sharing and permissions in Windows NT ShowIntroduction to folder sharing Sharing allows resources to be designated as being available to all users over a network. When a folder is shared, users can log into the folder from across the network and access the files within, as though the...