altro aggiornamento:
- Codice: Seleziona tutto
tochiro@darkstar:~$ ls -l /dev/usb/scanner0
crw-rw---- 1 root root 180, 48 2001-03-25 23:04 /dev/usb/scanner0
tochiro@darkstar:~$ su
Password:
root@darkstar:/home/tochiro# chown root:scanner /dev/usb/scanner0
root@darkstar:/home/tochiro# exit
exit
tochiro@darkstar:~$ sane-find-scanner
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".
found USB scanner (vendor=0x04b8, product=0x0802) at /dev/usb/scanner0
found USB scanner (vendor=0x04b8 [EPSON], product=0x0802 [USB MFP]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
tochiro@darkstar:~$ scanimage -L
device `epson:/dev/usb/scanner0' is a Epson CC-570L flatbed scanner
tochiro@darkstar:~$
/dev/usb/scanner0 non aveva i permessi "giusti", quindi ho impostati a manina.
Ma l'hotplug non doveva impostarli lui?
Vi posto anche /etc/hotplug/usb/libusbscanner
- Codice: Seleziona tutto
#!/bin/sh
# This file is part of sane-backends.
#
# This script changes the permissions and ownership of a USB device under
# /proc/bus/usb to grant access to this device to users in the scanner group.
#
# Ownership is set to root:scanner, permissions are set to 0660.
#
# Arguments :
# -----------
# ACTION=[add|remove]
# DEVICE=/proc/bus/usb/BBB/DDD
# TYPE=usb
# latest hotplug doesn't set DEVICE on 2.6.x kernels
if [ -z "$DEVICE" ] ; then
IF=`echo $DEVPATH | sed 's/\(bus\/usb\/devices\/\)\(.*\)-\(.*\)/\2/'`
DEV=$(cat /sys/${DEVPATH}/devnum)
DEVICE=`printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV`
fi
if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
chown root:scanner "$DEVICE"
chmod 0660 "$DEVICE"
fi
# That's an insecure but simple alternative
# Everyone has access to the scanner
# if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
# chmod 0666 "$DEVICE"
# fi
come si può notare viene impostato il gruppo scanner
chown root:scanner "$DEVICE"
pero non funziona.
qualcun'altro ha il mio stesso problema?