LinuxCommandLibrary

saned

Network scanner sharing daemon

TLDR

Run saned in standalone daemon mode

$ saned -a
copy
Run in debug mode waiting for connections
$ saned -d
copy
Run with verbose debugging
$ saned -d128
copy
Run in debug mode with SANE_DEBUG output
$ saned -s
copy
Specify a custom data port range
$ saned -a -b
copy

SYNOPSIS

saned [-a] [-d [n]] [-s [n]] [-b] [-u] [-e]

DESCRIPTION

saned is the SANE network daemon that allows remote clients to access locally-connected scanners. It listens on TCP port 6566 for scanning requests, communicates with local SANE backends, and returns scan data to clients.
The daemon can run standalone with -a or be managed by inetd/xinetd. Access control is configured in /etc/sane.d/saned.conf, which lists allowed hostnames, IP addresses, or CIDR subnets. Connections from localhost are always permitted.
Clients configure the server address in their /etc/sane.d/net.conf file to access remote scanners transparently through the network backend.

PARAMETERS

-a

Run in standalone daemon mode, detached from console
-d [n]
Debug mode; wait for connections explicitly. Optional number sets verbosity (higher = more verbose)
-s [n]
Debug mode with SANE_DEBUG output; optional verbosity level
-b
Negotiate a data port range with the client
-u
Run as user after binding to port
-e
Exit after first client disconnects (debug mode only)

CONFIGURATION

/etc/sane.d/saned.conf

Access control file listing hostnames, IP addresses, or CIDR subnets allowed to connect to the scanner daemon.
/etc/sane.d/net.conf
Client-side configuration listing remote saned servers to connect to for network scanning.

CAVEATS

saned is not designed for exposure to untrusted networks. Always restrict access via saned.conf and firewall rules. Using a single + in the access list allows any host to connect and poses a security risk. Firewall configuration may require specifying a data port range for the scanning data connection.

HISTORY

saned is part of the SANE (Scanner Access Now Easy) project, which began in 1996 to provide standardized scanner access on Unix systems. The network daemon enables scanner sharing across local networks without proprietary protocols.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community