[sane-devel] scanbd problem with dbus permission ?

2013-08-21 Thread Wilhelm
Am 20.08.2013 20:54, schrieb Wilhelm:
 Am 20.08.2013 18:17, schrieb Michael Markusch:
 Hi Wilhelm,

 thanks for your answer.

 I followed your notes but it still does not work.

 sad but true ;-)

 Looks like scanbd uses the wrong dll.conf, did you
 export SANE_CONFIG_DIR=/usr/local/etc/scanbd ?

 please show your configs:

 /etc/sane/dll.conf
 /usr/local/sbin/scanbd/dll.conf

Sorry, I meant:

/usr/local/etc/scanbd/dll.conf

 /usr/local/etc/scanbd/scanbd.conf

 and show the env-vars for the user starting the scanbd (root).


 - make distclean
 - ./configure
 - make
 - set in /usr/local/sbin/scanbd/dll.confonly genesys
 - sudo /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Running as effective gid 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Running as effective uid 112
 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: sane version 1.0
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: start_sane_threads
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: udev init
 /usr/local/sbin/scanbd: get udev monitor
 /usr/local/sbin/scanbd: timeout: 500 ms
 /usr/local/sbin/scanbd: udev fd is non-blocking, now setting to
 blocking mode
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: start udev thread
 /usr/local/sbin/scanbd: udev thread started
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 ...

 What else can I try?

 Thanks,
 Michael


 Am 20.08.2013 07:50, schrieb Wilhelm:
 Hi Michael,

 Am 18.08.2013 14:33, schrieb Michael Markusch:
 Hi,

 I tried to install scanbd and I guess that's very easy, but now I
 have a
 permission problem. In the past I use my scanner with sane as
 scanserver
 and everything worked.

 My system:
 Debian Wheezy, Kernel 3.6.11 on Raspberry Pi

 Scanner:
 Canon canoscan lide 35


 Here my installation steps:

 - install libconfuse-dev libsane-dev libudev-dev libusb-dev
 - I use scanbd from SVN
 - ./configure --enable-scanbuttond (no problems)

 why did you enable scanbuttond-drivers. Your scanner should be fully
 supported by the sane-backends (and as you said, scanimage is working)

 - make (no problems)
 - make install (no problems)
 - copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 - install xinetd
 - generate /etc/xinetd.d/sane-port
 - edit /etc/sane.d/dll.conf set only net
 - edit /usr/local/etc/scanbd/dll.conf set #net

 be sure to include the backend for your scanner

 - edit /etc/sane.d/net.conf set localhost and connect_timeout = 60
 - copy backends /etc/sane.d/ to /usr/local/etc/scanbd/
 - export SANE_CONFIG_DIR=/usr/local/etc/scanbd
 - /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf
 (with problems)

 Log:

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Can't set the effective gid to 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Can't set the effective uid to 112

 If you start scanbd as unprivileged user it isn't possible to changed
 the euid/egid. Start it as root and it will itself change the euid /
 egid to the ones in the config file.

 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/meta.so
 /usr/local/sbin/scanbd: meta-backend: init
 /usr/local/sbin/scanbd: libusbi: initializing...
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: HP3500 USB
 /usr/local/sbin/scanbd: hp3500-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Snapscan USB
 /usr/local/sbin/scanbd: snapscan-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/niash.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Niash USB
 /usr/local/sbin/scanbd: niash-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Epson VX00
 Photo USB
 /usr/local/sbin/scanbd: epson-vphoto-backend: init
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: Can't get the scbtn device list


[sane-devel] scanbd problem with dbus permission ?

2013-08-21 Thread Michael Markusch
Hi Wilhelm,

I figured out the problem: it's about the permissions. It seems to be
this issue:

http://sane.10972.n7.nabble.com/scanbd-works-but-not-buttons-td16867.html

- edit scanbd.conf user = root, group = root
- login as root, sudo su
- export SANE_CONFIG_DIR=/usr/local/etc/scanbd
- /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf

Now I see the debug output and the pressed buttons.

Thanks,
Michael

Am 20.08.2013 20:54, schrieb Wilhelm:
 Am 20.08.2013 18:17, schrieb Michael Markusch:
 Hi Wilhelm,

 thanks for your answer.

 I followed your notes but it still does not work.

 sad but true ;-)

 Looks like scanbd uses the wrong dll.conf, did you
 export SANE_CONFIG_DIR=/usr/local/etc/scanbd ?

 please show your configs:

 /etc/sane/dll.conf
 /usr/local/sbin/scanbd/dll.conf
 /usr/local/etc/scanbd/scanbd.conf

 and show the env-vars for the user starting the scanbd (root).


 - make distclean
 - ./configure
 - make
 - set in /usr/local/sbin/scanbd/dll.confonly genesys
 - sudo /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Running as effective gid 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Running as effective uid 112
 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: sane version 1.0
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: start_sane_threads
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: udev init
 /usr/local/sbin/scanbd: get udev monitor
 /usr/local/sbin/scanbd: timeout: 500 ms
 /usr/local/sbin/scanbd: udev fd is non-blocking, now setting to
 blocking mode
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: start udev thread
 /usr/local/sbin/scanbd: udev thread started
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 ...

 What else can I try?

 Thanks,
 Michael


 Am 20.08.2013 07:50, schrieb Wilhelm:
 Hi Michael,

 Am 18.08.2013 14:33, schrieb Michael Markusch:
 Hi,

 I tried to install scanbd and I guess that's very easy, but now I
 have a
 permission problem. In the past I use my scanner with sane as
 scanserver
 and everything worked.

 My system:
 Debian Wheezy, Kernel 3.6.11 on Raspberry Pi

 Scanner:
 Canon canoscan lide 35


 Here my installation steps:

 - install libconfuse-dev libsane-dev libudev-dev libusb-dev
 - I use scanbd from SVN
 - ./configure --enable-scanbuttond (no problems)

 why did you enable scanbuttond-drivers. Your scanner should be fully
 supported by the sane-backends (and as you said, scanimage is working)

 - make (no problems)
 - make install (no problems)
 - copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 - install xinetd
 - generate /etc/xinetd.d/sane-port
 - edit /etc/sane.d/dll.conf set only net
 - edit /usr/local/etc/scanbd/dll.conf set #net

 be sure to include the backend for your scanner

 - edit /etc/sane.d/net.conf set localhost and connect_timeout = 60
 - copy backends /etc/sane.d/ to /usr/local/etc/scanbd/
 - export SANE_CONFIG_DIR=/usr/local/etc/scanbd
 - /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf
 (with problems)

 Log:

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Can't set the effective gid to 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Can't set the effective uid to 112

 If you start scanbd as unprivileged user it isn't possible to changed
 the euid/egid. Start it as root and it will itself change the euid /
 egid to the ones in the config file.

 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/meta.so
 /usr/local/sbin/scanbd: meta-backend: init
 /usr/local/sbin/scanbd: libusbi: initializing...
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: HP3500 USB
 /usr/local/sbin/scanbd: hp3500-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Snapscan USB
 /usr/local/sbin/scanbd: snapscan-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/niash.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Niash USB
 

[sane-devel] scanbd problem with dbus permission ?

2013-08-20 Thread Wilhelm
Hi Michael,

Am 18.08.2013 14:33, schrieb Michael Markusch:
 Hi,

 I tried to install scanbd and I guess that's very easy, but now I have a
 permission problem. In the past I use my scanner with sane as scanserver
 and everything worked.

 My system:
 Debian Wheezy, Kernel 3.6.11 on Raspberry Pi

 Scanner:
 Canon canoscan lide 35


 Here my installation steps:

 - install libconfuse-dev libsane-dev libudev-dev libusb-dev
 - I use scanbd from SVN
 - ./configure --enable-scanbuttond (no problems)

why did you enable scanbuttond-drivers. Your scanner should be fully 
supported by the sane-backends (and as you said, scanimage is working)

 - make (no problems)
 - make install (no problems)
 - copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 - install xinetd
 - generate /etc/xinetd.d/sane-port
 - edit /etc/sane.d/dll.conf set only net
 - edit /usr/local/etc/scanbd/dll.conf set #net

be sure to include the backend for your scanner

 - edit /etc/sane.d/net.conf set localhost and connect_timeout = 60
 - copy backends /etc/sane.d/ to /usr/local/etc/scanbd/
 - export SANE_CONFIG_DIR=/usr/local/etc/scanbd
 - /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf
 (with problems)

 Log:

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Can't set the effective gid to 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Can't set the effective uid to 112

If you start scanbd as unprivileged user it isn't possible to changed 
the euid/egid. Start it as root and it will itself change the euid / 
egid to the ones in the config file.

 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/meta.so
 /usr/local/sbin/scanbd: meta-backend: init
 /usr/local/sbin/scanbd: libusbi: initializing...
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: HP3500 USB
 /usr/local/sbin/scanbd: hp3500-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Snapscan USB
 /usr/local/sbin/scanbd: snapscan-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/niash.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Niash USB
 /usr/local/sbin/scanbd: niash-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Epson VX00
 Photo USB
 /usr/local/sbin/scanbd: epson-vphoto-backend: init
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: Can't get the scbtn device list

your scanner isn't recognized by the old scanbuttond-backends. As said 
above please use the sane-backends

 /usr/local/sbin/scanbd: device list null
 /usr/local/sbin/scanbd: start_scbtn_threads
 /usr/local/sbin/scanbd: start the threads (0)
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: Not Primary Owner (-1)
 /usr/local/sbin/scanbd: Name Error (Connection :1.48 is not allowed
 to own the service de.kmux.scanbd.server due to security policies in
 the configuration file)

 If I started scanbd as sudo:

 Log:

 ...
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Epson VX00
 Photo USB
 /usr/local/sbin/scanbd: epson-vphoto-backend: init
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: Can't get the scbtn device list
 /usr/local/sbin/scanbd: device list null
 /usr/local/sbin/scanbd: start_scbtn_threads
 /usr/local/sbin/scanbd: start the threads (0)
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: timeout: 500 ms
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call

 I tried also too:

 - SANE_CONFIG_DIR=/usr/local/etc/scanbd scanimage -L (with problems)
 - copy 99-saned.rules to /lib/udev/rules.d
 - udevadm trigger
 - SANE_CONFIG_DIR=/usr/local/etc/scanbd scanimage -L (with problems)
 - sudo SANE_CONFIG_DIR=/usr/local/etc/scanbd scanimage -L (no problems)


 I'm not familiar with dbus and so on... Can someone help me please?

Please do:

make distclean
./configure
make

and install it as above.
Then redo your tests.


-- 
Wilhelm
w.meier at unix.net



[sane-devel] scanbd problem with dbus permission ?

2013-08-20 Thread Michael Markusch
Hi Wilhelm,

thanks for your answer.

I followed your notes but it still does not work.

- make distclean
- ./configure
- make
- set in /usr/local/sbin/scanbd/dll.confonly genesys
- sudo /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Running as effective gid 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Running as effective uid 112
 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: sane version 1.0
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: start_sane_threads
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: udev init
 /usr/local/sbin/scanbd: get udev monitor
 /usr/local/sbin/scanbd: timeout: 500 ms
 /usr/local/sbin/scanbd: udev fd is non-blocking, now setting to
 blocking mode
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: start udev thread
 /usr/local/sbin/scanbd: udev thread started
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 ...

What else can I try?

Thanks,
Michael


Am 20.08.2013 07:50, schrieb Wilhelm:
 Hi Michael,

 Am 18.08.2013 14:33, schrieb Michael Markusch:
 Hi,

 I tried to install scanbd and I guess that's very easy, but now I have a
 permission problem. In the past I use my scanner with sane as scanserver
 and everything worked.

 My system:
 Debian Wheezy, Kernel 3.6.11 on Raspberry Pi

 Scanner:
 Canon canoscan lide 35


 Here my installation steps:

 - install libconfuse-dev libsane-dev libudev-dev libusb-dev
 - I use scanbd from SVN
 - ./configure --enable-scanbuttond (no problems)

 why did you enable scanbuttond-drivers. Your scanner should be fully
 supported by the sane-backends (and as you said, scanimage is working)

 - make (no problems)
 - make install (no problems)
 - copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 - install xinetd
 - generate /etc/xinetd.d/sane-port
 - edit /etc/sane.d/dll.conf set only net
 - edit /usr/local/etc/scanbd/dll.conf set #net

 be sure to include the backend for your scanner

 - edit /etc/sane.d/net.conf set localhost and connect_timeout = 60
 - copy backends /etc/sane.d/ to /usr/local/etc/scanbd/
 - export SANE_CONFIG_DIR=/usr/local/etc/scanbd
 - /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf
 (with problems)

 Log:

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Can't set the effective gid to 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Can't set the effective uid to 112

 If you start scanbd as unprivileged user it isn't possible to changed
 the euid/egid. Start it as root and it will itself change the euid /
 egid to the ones in the config file.

 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/meta.so
 /usr/local/sbin/scanbd: meta-backend: init
 /usr/local/sbin/scanbd: libusbi: initializing...
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: HP3500 USB
 /usr/local/sbin/scanbd: hp3500-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Snapscan USB
 /usr/local/sbin/scanbd: snapscan-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/niash.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Niash USB
 /usr/local/sbin/scanbd: niash-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Epson VX00
 Photo USB
 /usr/local/sbin/scanbd: epson-vphoto-backend: init
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: Can't get the scbtn device list

 your scanner isn't recognized by the old scanbuttond-backends. As said
 above please use the sane-backends

 /usr/local/sbin/scanbd: device list null
 /usr/local/sbin/scanbd: start_scbtn_threads
 /usr/local/sbin/scanbd: start the threads (0)
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: Not Primary Owner (-1)
 /usr/local/sbin/scanbd: Name Error (Connection :1.48 is not allowed
 to own the service de.kmux.scanbd.server due to 

[sane-devel] scanbd problem with dbus permission ?

2013-08-20 Thread Wilhelm
Am 20.08.2013 18:17, schrieb Michael Markusch:
 Hi Wilhelm,

 thanks for your answer.

 I followed your notes but it still does not work.

sad but true ;-)

Looks like scanbd uses the wrong dll.conf, did you
export SANE_CONFIG_DIR=/usr/local/etc/scanbd ?

please show your configs:

/etc/sane/dll.conf
/usr/local/sbin/scanbd/dll.conf
/usr/local/etc/scanbd/scanbd.conf

and show the env-vars for the user starting the scanbd (root).


 - make distclean
 - ./configure
 - make
 - set in /usr/local/sbin/scanbd/dll.confonly genesys
 - sudo /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Running as effective gid 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Running as effective uid 112
 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: sane version 1.0
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: start_sane_threads
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: udev init
 /usr/local/sbin/scanbd: get udev monitor
 /usr/local/sbin/scanbd: timeout: 500 ms
 /usr/local/sbin/scanbd: udev fd is non-blocking, now setting to
 blocking mode
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: start udev thread
 /usr/local/sbin/scanbd: udev thread started
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 ...

 What else can I try?

 Thanks,
 Michael


 Am 20.08.2013 07:50, schrieb Wilhelm:
 Hi Michael,

 Am 18.08.2013 14:33, schrieb Michael Markusch:
 Hi,

 I tried to install scanbd and I guess that's very easy, but now I have a
 permission problem. In the past I use my scanner with sane as scanserver
 and everything worked.

 My system:
 Debian Wheezy, Kernel 3.6.11 on Raspberry Pi

 Scanner:
 Canon canoscan lide 35


 Here my installation steps:

 - install libconfuse-dev libsane-dev libudev-dev libusb-dev
 - I use scanbd from SVN
 - ./configure --enable-scanbuttond (no problems)

 why did you enable scanbuttond-drivers. Your scanner should be fully
 supported by the sane-backends (and as you said, scanimage is working)

 - make (no problems)
 - make install (no problems)
 - copy scanbd_dbus.conf to /etc/dbus-1/system.d/
 - install xinetd
 - generate /etc/xinetd.d/sane-port
 - edit /etc/sane.d/dll.conf set only net
 - edit /usr/local/etc/scanbd/dll.conf set #net

 be sure to include the backend for your scanner

 - edit /etc/sane.d/net.conf set localhost and connect_timeout = 60
 - copy backends /etc/sane.d/ to /usr/local/etc/scanbd/
 - export SANE_CONFIG_DIR=/usr/local/etc/scanbd
 - /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf
 (with problems)

 Log:

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Can't set the effective gid to 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Can't set the effective uid to 112

 If you start scanbd as unprivileged user it isn't possible to changed
 the euid/egid. Start it as root and it will itself change the euid /
 egid to the ones in the config file.

 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/meta.so
 /usr/local/sbin/scanbd: meta-backend: init
 /usr/local/sbin/scanbd: libusbi: initializing...
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: HP3500 USB
 /usr/local/sbin/scanbd: hp3500-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Snapscan USB
 /usr/local/sbin/scanbd: snapscan-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/niash.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Niash USB
 /usr/local/sbin/scanbd: niash-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Epson VX00
 Photo USB
 /usr/local/sbin/scanbd: epson-vphoto-backend: init
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: Can't get the scbtn device list

 your scanner isn't recognized by the old scanbuttond-backends. As said
 above please use the 

[sane-devel] scanbd problem with dbus permission ?

2013-08-18 Thread Michael Markusch
Hi,

I tried to install scanbd and I guess that's very easy, but now I have a
permission problem. In the past I use my scanner with sane as scanserver
and everything worked.

My system:
Debian Wheezy, Kernel 3.6.11 on Raspberry Pi

Scanner:
Canon canoscan lide 35


Here my installation steps:

- install libconfuse-dev libsane-dev libudev-dev libusb-dev
- I use scanbd from SVN
- ./configure --enable-scanbuttond (no problems)
- make (no problems)
- make install (no problems)
- copy scanbd_dbus.conf to /etc/dbus-1/system.d/
- install xinetd
- generate /etc/xinetd.d/sane-port
- edit /etc/sane.d/dll.conf set only net
- edit /usr/local/etc/scanbd/dll.conf set #net
- edit /etc/sane.d/net.conf set localhost and connect_timeout = 60
- copy backends /etc/sane.d/ to /usr/local/etc/scanbd/
- export SANE_CONFIG_DIR=/usr/local/etc/scanbd
- /usr/local/sbin/scanbd -d -f -c /usr/local/etc/scanbd/scanbd.conf
(with problems)

Log:

 /usr/local/sbin/scanbd: debug on: level: 7
 /usr/local/sbin/scanbd: dropping privs to uid saned
 /usr/local/sbin/scanbd: dropping privs to gid lp
 /usr/local/sbin/scanbd: drop privileges to gid: 7
 /usr/local/sbin/scanbd: Can't set the effective gid to 7
 /usr/local/sbin/scanbd: drop privileges to uid: 112
 /usr/local/sbin/scanbd: Can't set the effective uid to 112
 /usr/local/sbin/scanbd: dbus_init
 /usr/local/sbin/scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager'
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/meta.so
 /usr/local/sbin/scanbd: meta-backend: init
 /usr/local/sbin/scanbd: libusbi: initializing...
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: HP3500 USB
 /usr/local/sbin/scanbd: hp3500-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Snapscan USB
 /usr/local/sbin/scanbd: snapscan-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/niash.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Niash USB
 /usr/local/sbin/scanbd: niash-backend: init
 /usr/local/sbin/scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Epson VX00
 Photo USB
 /usr/local/sbin/scanbd: epson-vphoto-backend: init
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: Can't get the scbtn device list
 /usr/local/sbin/scanbd: device list null
 /usr/local/sbin/scanbd: start_scbtn_threads
 /usr/local/sbin/scanbd: start the threads (0)
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: Not Primary Owner (-1)
 /usr/local/sbin/scanbd: Name Error (Connection :1.48 is not allowed
 to own the service de.kmux.scanbd.server due to security policies in
 the configuration file)

If I started scanbd as sudo:

Log:

 ...
 /usr/local/sbin/scanbd: meta-backend: attaching backend: Epson VX00
 Photo USB
 /usr/local/sbin/scanbd: epson-vphoto-backend: init
 /usr/local/sbin/scanbd: Scanning for local-only devices
 /usr/local/sbin/scanbd: Can't get the scbtn device list
 /usr/local/sbin/scanbd: device list null
 /usr/local/sbin/scanbd: start_scbtn_threads
 /usr/local/sbin/scanbd: start the threads (0)
 /usr/local/sbin/scanbd: start dbus thread
 /usr/local/sbin/scanbd: timeout: 500 ms
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call
 /usr/local/sbin/scanbd: Iteration on dbus call

I tried also too:

- SANE_CONFIG_DIR=/usr/local/etc/scanbd scanimage -L (with problems)
- copy 99-saned.rules to /lib/udev/rules.d
- udevadm trigger
- SANE_CONFIG_DIR=/usr/local/etc/scanbd scanimage -L (with problems)
- sudo SANE_CONFIG_DIR=/usr/local/etc/scanbd scanimage -L (no problems)


I'm not familiar with dbus and so on... Can someone help me please?

Thanks,
Michael



[sane-devel] scanbd problem with dbus permission ?

2013-02-27 Thread stout
Hello,


 A few notes:
 scanbd_dbus shall be copied into /etc/dbus-1/system.d, that is what you
 referred to I guess?

Yes it is.

 What do you use to start scanbd? Systemd? Scanbd apparently does not see
 the scanner. What is set for SANE_CONFIG_DIR? Do you have a dll.conf in
 that dir with the appropriate backend for your scanner listed? Does it
 have the config file for the backend (if needed) in that dir? 
 

Yes, I use systemd to start scanbd.
No, the SANE_CONFIG_DIR wasn't set.
I just try to set it manually (with export command), pointing to the
scanbd folder, where a dll.conf is, but it did not change anything :
if I launch directly scanbd, Iteration on dbus call , if I do a
scanimage before launching it, everything works just fine...

Thank you for your attention,

Best regards,

stout



[sane-devel] scanbd problem with dbus permission ?

2013-02-27 Thread Louis Lagendijk
On Wed, 2013-02-27 at 09:58 +0100, stout wrote:
 Hello,
 
 
  A few notes:
  scanbd_dbus shall be copied into /etc/dbus-1/system.d, that is what you
  referred to I guess?
 
 Yes it is.
 
  What do you use to start scanbd? Systemd? Scanbd apparently does not see
  the scanner. What is set for SANE_CONFIG_DIR? Do you have a dll.conf in
  that dir with the appropriate backend for your scanner listed? Does it
  have the config file for the backend (if needed) in that dir? 
  
 
 Yes, I use systemd to start scanbd.
 No, the SANE_CONFIG_DIR wasn't set.

1) For scanbd (and scanbm) it should be set in the service files in
(/usr)/lib/systemd/system/scanbd.service or scanbm at .service:

Here is my scanbd.service:
[Unit]
Description=Scanner button polling Service

[Service]
Type=simple
ExecStart=/usr/sbin/scanbd -f
#ExecReload=?
Environment=SANE_CONFIG_DIR=/etc/scanbd
StandardInput=null
StandardOutput=syslog
StandardError=syslog
#NotifyAccess=?

[Install]
WantedBy=multi-user.target
Also=scanbm.socket
Alias=dbus-de.kmux.scanbd.server.service

see the environment setting.
Please note that the config dir must be different for scanbd and the
user. This is why we set it here for scanbd (and in scanbm.service for
scanbm) and point it to the directory where we have a dll.conf with
reference to the backend for the scanner and (if needed) the xxx.conf
for the backend.

2) For the user we need a dll.conf in the normal location
(often /etc/sane.d) where the dll.conf only has 
net 
and the net.conf (with appropriate customization)

kind regards
Louis





[sane-devel] scanbd problem with dbus permission ?

2013-02-26 Thread stout
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I found some solution for my problem :
First, I noticed than the file scanbd_dbus.conf wasn't in the system.d
folder, so I added it.

The error changed : no more dbus connection error but endless
Iteration on dbus call in the log...

It seems that if I start scanbd right after inetd, this error shows.
Bur if I start inetd, then do a scanimage -L or another use of the
scanner via sane, then start scanbd, it works like a charm !

So I modify the udev rule so that when the scanner is turned on, it
launches inetd, then imagescan -L, then scanbd :

# Epson Perfection V500 Photo
ENV{ID_VENDOR_ID}==04b8, ENV{ID_MODEL_ID}==0130, ACTION==add,
RUN+=/usr/sbin/service inetutils-inetd start,
RUN+=/usr/bin/scanimage -L, RUN+=/usr/sbin/service scanbd start
ENV{ID_VENDOR_ID}==04b8, ENV{ID_MODEL_ID}==0130, ACTION==remove,
RUN+=/usr/sbin/service scanbd stop, RUN+=/usr/sbin/service
inetutils-inetd stop

I don't know if it is a configuration problem or a bug...

Best regard

stout




On 25/02/2013 21:32, stout wrote:
 Hello,
 
 Something strange happened :
 
 2 months ago,I managed to get scanbd to work perfectly with my
 epson V500 scanner, built my own script, ..., was very proud of
 myself...
 
 ... until today, where after 2 months of not using it, I tried to
 use a button, and it did not work !! I must have changed something,
 during those 2 months, but I really don't know what...
 
 So, the scanner is plugged in a Debian 6, the debug log shows these
 errors :
 
 scanbd: start dbus thread scanbd: Not Primary Owner (-1) scanbd:
 Name Error (Connection :1.8 is not allowed to own the service
 de.kmux.scanbd.server due to security policies in the 
 configuration
 
 and later :
 
 scanbd: polling device Perfection V500 scanbd:
 epson-vphoto-backend: communication error: read length:0 
 (expected:1)
 
 (the full log is pasted afterwards)
 
 I tried to modify the user/group in scanbd.conf (trying lp, saned, 
 scanner, root..) with no change.
 
 The UDEV rule for the scanner seems to make it belong to the
 scanner group : ATTRS{idVendor}==04b8,
 ATTRS{idProduct}==0130, MODE=0664, GROUP=scanner,
 ENV{libsane_matched}=yes
 
 Don't hesitate to ask me for more informations if needed...
 
 Thanks for your help !
 
 best regards
 
 stout
 
 
 here is the full log :
 
 scanbd -f scanbd: debug on: level: 7 scanbd: dropping privs to uid
 saned scanbd: dropping privs to gid scanner scanbd: group scanner
 has member: scanbd: saned scanbd: root scanbd: lp scanbd: drop
 privileges to gid: 113 scanbd: Running as effective gid 113 scanbd:
 drop privileges to uid: 109 scanbd: Running as effective uid 109 
 scanbd: dbus_init scanbd: dbus match
 type='signal',interface='org.freedesktop.Hal.Manager' scanbd:
 Loading /usr/local/lib/scanbd/scanbuttond/backends/meta.so scanbd:
 meta-backend: init scanbd: libusbi: initializing... scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so scanbd:
 meta-backend: attaching backend: HP3500 USB scanbd: hp3500-backend:
 init scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so scanbd:
 meta-backend: attaching backend: Snapscan USB scanbd:
 snapscan-backend: init scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/niash.so scanbd:
 meta-backend: attaching backend: Niash USB scanbd: niash-backend:
 init scanbd: Loading
 /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so scanbd:
 meta-backend: attaching backend: Epson VX00 Photo USB scanbd:
 epson-vphoto-backend: init scanbd: meta-backend: attached scanner
 Epson Perfection V500 scanbd: Scanning for local-only devices 
 scanbd: found device: Perfection V500 Epson
 epkowa:interpreter:001:004 scanbd: start_scbtn_threads scanbd:
 start the threads (1) scanbd: Starting poll thread for Perfection
 V500 scanbd: Thread started for device Perfection V500 scanbd:
 scbtn_poll scanbd: start dbus thread scanbd: Not Primary Owner
 (-1) scanbd: Name Error (Connection :1.8 is not allowed to own
 the service de.kmux.scanbd.server due to security policies in
 the configuration file) scanbd: found 4 options for device
 Perfection V500 scanbd: sane_find_matching_options scanbd: no
 matching actions in section (null) scanbd:
 sane_find_matching_functions scanbd: scanbuttond backends can't use
 function definitions scanbd: found 1 local device sections scanbd:
 checking device section V500 with filter: (.*V500.*) scanbd: found
 4 local action for device Perfection V500 [V500] scanbd:
 sane_find_matching_options scanbd: found 4 actions in section V500 
 scanbd: checking action scan with filter: ^web.* scanbd:
 scanbtnd_button_name (1) scanbd: scanbtnd_button_name, backend:
 Epson VX00 Photo USB scanbd: found active option[0] web for device
 Perfection V500 scanbd: installing action scan (0) for Perfection
 V500, option[0]: web as: myV500.script scanbd: multiple actions
 allowed scanbd: scanbtnd_button_name (2) scanbd:
 scanbtnd_button_name, backend: Epson VX00 Photo USB scanbd: 

[sane-devel] scanbd problem with dbus permission ?

2013-02-26 Thread Louis Lagendijk
On Tue, 2013-02-26 at 11:23 +0100, stout wrote:
 Hello,
 
 I found some solution for my problem :
 First, I noticed than the file scanbd_dbus.conf wasn't in the system.d
 folder, so I added it.
 
 The error changed : no more dbus connection error but endless
 Iteration on dbus call in the log...
 
 It seems that if I start scanbd right after inetd, this error shows.
 Bur if I start inetd, then do a scanimage -L or another use of the
 scanner via sane, then start scanbd, it works like a charm !
 
 So I modify the udev rule so that when the scanner is turned on, it
 launches inetd, then imagescan -L, then scanbd :
 
 # Epson Perfection V500 Photo
 ENV{ID_VENDOR_ID}==04b8, ENV{ID_MODEL_ID}==0130, ACTION==add,
 RUN+=/usr/sbin/service inetutils-inetd start,
 RUN+=/usr/bin/scanimage -L, RUN+=/usr/sbin/service scanbd start
 ENV{ID_VENDOR_ID}==04b8, ENV{ID_MODEL_ID}==0130, ACTION==remove,
 RUN+=/usr/sbin/service scanbd stop, RUN+=/usr/sbin/service
 inetutils-inetd stop
 
this should not be required, but you need to set the SANE_CONFIG_DIR
env. variable before starting scanbd (see below)
 I don't know if it is a configuration problem or a bug...
 
 Best regard
 
 stout
 
 
A few notes:
scanbd_dbus shall be copied into /etc/dbus-1/system.d, that is what you
referred to I guess?
What do you use to start scanbd? Systemd? Scanbd apparently does not see
the scanner. What is set for SANE_CONFIG_DIR? Do you have a dll.conf in
that dir with the appropriate backend for your scanner listed? Does it
have the config file for the backend (if needed) in that dir? 

kind regards, Louis 





[sane-devel] scanbd problem with dbus permission ?

2013-02-25 Thread stout
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

Something strange happened :

2 months ago,I managed to get scanbd to work perfectly with my epson
V500 scanner, built my own script, ..., was very proud of myself...

... until today, where after 2 months of not using it, I tried to use
a button, and it did not work !!
I must have changed something, during those 2 months, but I really
don't know what...

So, the scanner is plugged in a Debian 6,
the debug log shows these errors :

scanbd: start dbus thread
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection :1.8 is not allowed to own the
service de.kmux.scanbd.server due to security policies in the
configuration

and later :

scanbd: polling device Perfection V500
scanbd: epson-vphoto-backend: communication error: read length:0
(expected:1)

(the full log is pasted afterwards)

I tried to modify the user/group in scanbd.conf (trying lp, saned,
scanner, root..) with no change.

The UDEV rule for the scanner seems to make it belong to the scanner
group :
ATTRS{idVendor}==04b8, ATTRS{idProduct}==0130, MODE=0664,
GROUP=scanner, ENV{libsane_matched}=yes

Don't hesitate to ask me for more informations if needed...

Thanks for your help !

best regards

stout


here is the full log :

scanbd -f
scanbd: debug on: level: 7
scanbd: dropping privs to uid saned
scanbd: dropping privs to gid scanner
scanbd: group scanner has member:
scanbd: saned
scanbd: root
scanbd: lp
scanbd: drop privileges to gid: 113
scanbd: Running as effective gid 113
scanbd: drop privileges to uid: 109
scanbd: Running as effective uid 109
scanbd: dbus_init
scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/meta.so
scanbd: meta-backend: init
scanbd: libusbi: initializing...
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
scanbd: meta-backend: attaching backend: HP3500 USB
scanbd: hp3500-backend: init
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
scanbd: meta-backend: attaching backend: Snapscan USB
scanbd: snapscan-backend: init
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/niash.so
scanbd: meta-backend: attaching backend: Niash USB
scanbd: niash-backend: init
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so
scanbd: meta-backend: attaching backend: Epson VX00 Photo USB
scanbd: epson-vphoto-backend: init
scanbd: meta-backend: attached scanner Epson Perfection V500
scanbd: Scanning for local-only devices
scanbd: found device: Perfection V500 Epson epkowa:interpreter:001:004
scanbd: start_scbtn_threads
scanbd: start the threads (1)
scanbd: Starting poll thread for Perfection V500
scanbd: Thread started for device Perfection V500
scanbd: scbtn_poll
scanbd: start dbus thread
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection :1.8 is not allowed to own the
service de.kmux.scanbd.server due to security policies in the
configuration file)
scanbd: found 4 options for device Perfection V500
scanbd: sane_find_matching_options
scanbd: no matching actions in section (null)
scanbd: sane_find_matching_functions
scanbd: scanbuttond backends can't use function definitions
scanbd: found 1 local device sections
scanbd: checking device section V500 with filter: (.*V500.*)
scanbd: found 4 local action for device Perfection V500 [V500]
scanbd: sane_find_matching_options
scanbd: found 4 actions in section V500
scanbd: checking action scan with filter: ^web.*
scanbd: scanbtnd_button_name (1)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[0] web for device Perfection V500
scanbd: installing action scan (0) for Perfection V500, option[0]: web
as: myV500.script
scanbd: multiple actions allowed
scanbd: scanbtnd_button_name (2)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[1] email for device Perfection V500
scanbd: scanbtnd_button_name (3)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[2] copy for device Perfection V500
scanbd: scanbtnd_button_name (4)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[3] send for device Perfection V500
scanbd: checking action email with filter: ^copy.*
scanbd: scanbtnd_button_name (1)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[0] web for device Perfection V500
scanbd: scanbtnd_button_name (2)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[1] email for device Perfection V500
scanbd: scanbtnd_button_name (3)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[2] copy for device Perfection V500
scanbd: installing action email (1) for Perfection V500, option[2]:
copy as: myV500.script
scanbd: multiple actions allowed
scanbd: scanbtnd_button_name (4)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found