View previous topic :: View next topic |
Author |
Message |
NiQoZ Tux's lil' helper


Joined: 13 Jun 2004 Posts: 90
|
Posted: Wed May 24, 2006 10:19 am Post subject: [scanner] fonctionne seulement en root ... (resolu) |
|
|
mon scanner est un Epson Perfection 1670, il onctionne grace au driver binaire windows avec snapscan.conf
Il fonctionne parfaitement en root mais refuse de fonctionner en simple utilisateur.
Code: | # lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 1241:1503 Belkin
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 003: ID 04b8:011f Seiko Epson Corp. Perfection 1670
|
J'ai changer (sauvagement...) mes permissions :
Code: |
# ls -l /proc/bus/usb
total 0
drwxrwxrwx 2 root root 0 mai 24 2006 001
dr-xr-xr-x 2 root root 0 mai 24 2006 002
dr-xr-xr-x 2 root root 0 mai 24 2006 003
dr-xr-xr-x 2 root root 0 mai 24 2006 004
-r--r--r-- 1 root root 0 mai 24 2006 devices
|
Code: |
# ls -l /proc/bus/usb/001/
total 0
-rw-rw-r-- 1 root usb 43 mai 24 2006 001
-rw-rw-rw- 1 root scanner 57 mai 24 2006 003
|
Plutot permissif comme reglage
Mais comme cela ça ne fonctionne toujours pas j'en conclu que j'ai du oublier d'autres permissions.
Aurai-je commis une erreur ?
Cordialement, _________________ NiQoZ,
Site Perso : http://www.niqozweb.net
Assistance réseau et messagerie sous Gentoo / Linux.
Last edited by NiQoZ on Wed May 24, 2006 11:58 am; edited 1 time in total |
|
Back to top |
|
 |
dapsaille Advocate


Joined: 02 Aug 2004 Posts: 2366 Location: Paris
|
Posted: Wed May 24, 2006 10:20 am Post subject: |
|
|
Si tu utilise Sene n'oublie pas de rajouter ton user dans le groupe sane :p |
|
Back to top |
|
 |
boozo Advocate


Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
 |
NiQoZ Tux's lil' helper


Joined: 13 Jun 2004 Posts: 90
|
Posted: Wed May 24, 2006 10:37 am Post subject: |
|
|
Quote: | Si tu utilise Sene n'oublie pas de rajouter ton user dans le groupe sane :p |
Seulement je n'est pas de groupe sane ? alors j'en ai creer un et ajouté a mon user mais sans resultats.
Quote: | pour les droits c'est pas une bonne idée m'est avis... mais peux-tu regarder si ton user appartient bien au groupe scanner ? |
C'est sur que c'est pas une bonne idéé mais c'est temporaire pour eliminer les problèmers de droits
Sinon je fait bien parti du groupe scanner ! _________________ NiQoZ,
Site Perso : http://www.niqozweb.net
Assistance réseau et messagerie sous Gentoo / Linux. |
|
Back to top |
|
 |
NiQoZ Tux's lil' helper


Joined: 13 Jun 2004 Posts: 90
|
Posted: Wed May 24, 2006 10:39 am Post subject: |
|
|
Concernant le groupe sane ce ne peut tre le probleme car tout mes programmes ne peuvent acceder au scanner:
Code: | $ 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).
|
_________________ NiQoZ,
Site Perso : http://www.niqozweb.net
Assistance réseau et messagerie sous Gentoo / Linux. |
|
Back to top |
|
 |
NiQoZ Tux's lil' helper


Joined: 13 Jun 2004 Posts: 90
|
Posted: Wed May 24, 2006 11:29 am Post subject: |
|
|
en root :
Code: |
# scanimage -L
device `snapscan:libusb:001:005' is a EPSON EPSON Scanner flatbed scanner
|
En utilisant scanimage en utilisateur avec strace:
Code: | $strace scanimage
------------------------------------------------------
open("/dev/bus/usb/001/005", O_RDWR) = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/005", O_RDONLY) = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0x77e9fce8) = -1 EPERM (Operation not permitted)
--------------------------------------------------------
|
C'est don bien un probleme de droits pourtant :
Code: | # ls -l /proc/bus/usb/001/
total 0
-rw-rw-r-- 1 root usb 43 mai 23 11:20 001
-rw-rw-rw- 1 root scanner 57 mai 24 13:12 005
|
J'en perd mon latin  _________________ NiQoZ,
Site Perso : http://www.niqozweb.net
Assistance réseau et messagerie sous Gentoo / Linux. |
|
Back to top |
|
 |
yesi Guru


Joined: 25 Oct 2004 Posts: 331
|
Posted: Wed May 24, 2006 11:32 am Post subject: |
|
|
ce n'est pas du côté du groupe sane qu'il faut regarder mais plutôt de celui de scanner:
Quote: | -rw-rw-rw- 1 root scanner 57 mai 24 2006 003 |
|
|
Back to top |
|
 |
NiQoZ Tux's lil' helper


Joined: 13 Jun 2004 Posts: 90
|
Posted: Wed May 24, 2006 11:36 am Post subject: |
|
|
Quote: | Sinon je fait bien parti du groupe scanner ! |
domage ... _________________ NiQoZ,
Site Perso : http://www.niqozweb.net
Assistance réseau et messagerie sous Gentoo / Linux. |
|
Back to top |
|
 |
guilc Bodhisattva


Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Wed May 24, 2006 11:43 am Post subject: |
|
|
Avec les nouvelles version de sane, il va chercher le scanner dans /dev apparement, pas dans /proc.
Pour contourner le problème, perso j'ai fait ça :
Code: | $ cat /etc/udev/rules.d/01-scanner.rules
# Scanner for good rights management
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="2220", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="scanner", MODE="0660" |
Ca mets les bonnes permission sur le device du scanner (660 groupe scanner).
Adapte huste ton idVendor et idProduct : 04b8 et 011f pour toi _________________ Merci de respecter les règles du forum.
Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing |
|
Back to top |
|
 |
NiQoZ Tux's lil' helper


Joined: 13 Jun 2004 Posts: 90
|
Posted: Wed May 24, 2006 11:58 am Post subject: |
|
|
Super merci beaucoup guilc cela fonctionne parfaitement, et honetement cela depasse mes competences (connait pas bien udev) je n'aurait pas trouver tout seul j'avais bien vu beaucoup de lignes referantes à /dev avec strace mais je n'est pas fait le raprochement .
Alors un grand merci  _________________ NiQoZ,
Site Perso : http://www.niqozweb.net
Assistance réseau et messagerie sous Gentoo / Linux. |
|
Back to top |
|
 |
|