Find the answer to your Linux question:
Results 1 to 3 of 3
So here is the situation: Distro: Slack 10.2 kernel 2.6 compiled by me sane-backends:i also compliled it (1.0.16) beacuse i needed to upgrade its source files with the new plustek ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! SQuIDers's Avatar
    Join Date
    May 2006
    Posts
    4

    sane, libusb, and permissions


    So here is the situation:

    Distro: Slack 10.2
    kernel 2.6 compiled by me
    sane-backends:i also compliled it (1.0.16) beacuse i needed to upgrade its source files with the new plustek (0.50) source files that support my scanner.

    As root:

    Code:
    root@squidov:~# scanimage -L
    device `plustek:libusb:003:004' is a Canon LiDE25 USB flatbed scanner
    that`s ok


    i`ve copied the files "libusbscanner" and "libsane.usermap" to /etc/hotplug/usb.

    I`ve tested the "libusbscanner" script by unplgugging and plugging back in my scanner several times. The script does its job.

    Code:
    root@squidov:/proc/bus/usb/003# ls -al
    total 0
    dr-xr-xr-x  2 root root     0 2006-05-11 13:28 ./
    drwxr-xr-x  5 root root     0 2006-05-11 15:28 ../
    -rw-r--r--  1 root root    43 2006-05-11 13:28 001
    -rw-rw----  1 root scanner 57 2006-05-11 14:04 004
    I`ve added my username to the group "scanner", but here is what i get after the command "scanimage -L"

    Code:
    squiders@squidov:/etc/hotplug/usb$ scanimage -L
    
    No scanners were identified. If you were expecting something different,
    check that the scanner is plugged in, turned on and detected by the
    sane-find-scanner tool (if appropriate). Please read the documentation
    which came with this software (README, FAQ, manpages).
    again as root (to check if the "libusbscanner" script messed something up:

    Code:
    root@squidov:~# scanimage -L
    device `plustek:libusb:003:004' is a Canon LiDE25 USB flatbed scanner
    So, the script does what it should, and still i dont have permissions to the scanner?
    wtf?

    I`ve also scanned one image as root from the console "scanimage >test.png", and it worked as i thought, but i need full functionality of some of the available GUI-s, and i don`t want to start KDE as root....

    Does anyone have any idea what the problem might be? the scanner is the only thing that i`ve left unconfigured

  2. #2
    Linux Newbie
    Join Date
    May 2006
    Location
    Kansas
    Posts
    187
    When you are logged in as your own user ID, can 'cd' into this directory and see all these files?:

    root@squidov:/proc/bus/usb/003# ls -al
    total 0
    dr-xr-xr-x 2 root root 0 2006-05-11 13:28 ./
    drwxr-xr-x 5 root root 0 2006-05-11 15:28 ../
    -rw-r--r-- 1 root root 43 2006-05-11 13:28 001
    -rw-rw---- 1 root scanner 57 2006-05-11 14:04 004

    Perphaps you don't have permission to get into that directory as yourself. If you can get in, try changing the permissions so that the world can rw to your scanner "chmod o+rw ./004".

  3. #3
    Just Joined! SQuIDers's Avatar
    Join Date
    May 2006
    Posts
    4
    yeah, i could enter it

    Code:
    squiders@squidov:/proc/bus/usb/003$ ls -al
    total 0
    dr-xr-xr-x  2 root root  0 2006-05-12 00:15 ./
    drwxr-xr-x  5 root root  0 2006-05-12 02:15 ../
    -rw-r--r--  1 root root 43 2006-05-12 00:15 001
    -rw-r--r--  1 root root 57 2006-05-12 00:15 002
    -rw-rw-rw-  1 root root 52 2006-05-12 00:15 003
    now lets try with these permissions

    Code:
    squiders@squidov:~$ scanimage -d plustek:libusb:003:003 > test.png
    scanimage: open of device plustek:libusb:003:003 failed: Error during device I/O

    No matter, i`ve followed a mini howto (which i can`t find now).

    basically it explained to use saned (a daemon that is started via inted). The saned has root privileges in inetd, but its configured only to take requests from "localhost"...

    it will do untill i figure this thing out...

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •