Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #186719

Re: Scanner problem

From MENGUAL Jean-Philippe <mengualjeanphi@free.fr>
Newsgroups linux.debian.user
Subject Re: Scanner problem
Date 2017-09-12 22:10 +0200
Message-ID <uoZFo-5Ul-11@gated-at.bofh.it> (permalink)
References <uoBWp-75f-5@gated-at.bofh.it> <uoPG1-7Td-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,


Le 12/09/2017 à 11:22, Brian a écrit :
> On Mon 11 Sep 2017 at 19:23:09 +0200, MENGUAL Jean-Philippe wrote:
> 
>> Two scanners: 1=Epson; 2=canon. 1 works fine, as root and as user. Canon
>> works as root but not as user, scanimage and sane-find-scanner do not
>> find it.
> 
> Do we assume your system is a stretch one? Please post the model names
> of the scanners.


I try on Stretch and Buster.

We have Epson Perfection 3490 and Canon Lide 120.



>> While /dev/bus/usb/001/0XX is owned by root:root,, but as well by the
>> scanner group (where my user is), it is not the case with Canon, the
>> device is owned only by root:root.
> 
> On jessie and stretch a user is not required to be in the scanner group.
> 
> Post the output of 'ls -l /dev/bus/usb/*/*' for both scanners.

For Epson:
crw-rw-r--  1 root root 189, 136 sept. 12 21:07 /dev/bus/usb/002/009
crw-rw-r--+ 1 root root 189,  28 sept. 12 21:06 /dev/bus/usb/001/029
crw-rw-r--  1 root root 189,  27 sept. 12 20:56 /dev/bus/usb/001/028
crw-rw-r--  1 root root 189,   1 sept. 12 20:56 /dev/bus/usb/001/002
crw-rw-r--  1 root root 189, 129 sept. 12 20:56 /dev/bus/usb/002/002
crw-rw-r--  1 root root 189,   0 sept. 11 18:56 /dev/bus/usb/001/001
crw-rw-r--  1 root root 189, 128 sept. 11 18:56 /dev/bus/usb/002/001
crw-rw-r--  1 root root 189, 131 sept. 11 18:56 /dev/bus/usb/002/004
crw-rw-r--  1 root root 189,   2 sept.  5 20:04 /dev/bus/usb/001/003

For Canon:
crw-rw-r-- 1 root root 189, 136 sept. 12 21:09 /dev/bus/usb/002/009
crw-rw-r-- 1 root root 189,  29 sept. 12 21:09 /dev/bus/usb/001/030
crw-rw-r-- 1 root root 189,  27 sept. 12 20:56 /dev/bus/usb/001/028
crw-rw-r-- 1 root root 189,   1 sept. 12 20:56 /dev/bus/usb/001/002
crw-rw-r-- 1 root root 189, 129 sept. 12 20:56 /dev/bus/usb/002/002
crw-rw-r-- 1 root root 189,   0 sept. 11 18:56 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 128 sept. 11 18:56 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 131 sept. 11 18:56 /dev/bus/usb/002/004
crw-rw-r-- 1 root root 189,   2 sept.  5 20:04 /dev/bus/usb/001/003

FYI (and without I do any configuration anywhere, I just plug in scanners):
getfacl /dev/bus/usb/001/031:

Canon:
getfacl : suppression du premier « / » des noms de chemins absolus
# file: dev/bus/usb/001/031
# owner: root
# group: root
user::rw-
group::rw-
other::r--

getfacl /dev/bus/usb/001/032 (EPSON):
getfacl : suppression du premier « / » des noms de chemins absolus
# file: dev/bus/usb/001/032
# owner: root
# group: root
user::rw-
user:jp:rw-
group::rw-
group:scanner:rw-
mask::rw-
other::r--

Many thanks for  your help

Best regards,


> 
>> If I do setfacl -mgroup:scanner:rw- the scanner works as regular user.
> 
> This should be unnecessary.
> 
>> My questions:
>>
>> 1. Why permissions are set properly for Epson and not Canon?
> 
> Let's see if we can find out.
>  
>> 2. How can I create a Udev rule to fix itN
>>
>> 3. Should I reportbug to the sane package?
>>
>> Thanks. If I should write to another list such as debian-sane or
>> whatever, tell me.
> 
> Hopefully, doing any of these will become superfluous.
> 
> There is a wiki page dealing with scanners.
> 

-- 
Logo Hypra 	JEAN-PHILIPPE MENGUAL
DIRECTEUR TECHNIQUE ET QUALITÉ
102, rue des poissonniers, 75018, Paris
Tel : +331 84 73 06 61 <tel:+33184730661> Mob : +336 76 34 93 37
<tel:+33676349337>
jpmengual@hypra.fr <mailto:jpmengual@hypra.fr>
www.hypra.fr <http://www.hypra.fr/>
Facebook Hypra <https://www.facebook.com/hyprasoftware/> Twitter Hypra
<https://twitter.com/Hypra_> Linkedin Jean-Philippe
<https://fr.linkedin.com/in/jean-philippe-mengual-800133135>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Scanner problem MENGUAL Jean-Philippe <mengualjeanphi@free.fr> - 2017-09-11 20:50 +0200
  Re: Scanner problem Brian <ad44@cityscape.co.uk> - 2017-09-12 11:30 +0200
    Re: Scanner problem MENGUAL Jean-Philippe <mengualjeanphi@free.fr> - 2017-09-12 22:10 +0200
      Re: Scanner problem Michael Stone <mstone@debian.org> - 2017-09-12 23:30 +0200
      Re: Scanner problem Brian <ad44@cityscape.co.uk> - 2017-09-13 00:10 +0200
        Re: Scanner problem MENGUAL Jean-Philippe <mengualjeanphi@free.fr> - 2017-09-13 01:20 +0200
          Re: Scanner problem Michael Stone <mstone@debian.org> - 2017-09-13 07:40 +0200
            Re: Scanner problem MENGUAL Jean-Philippe <mengualjeanphi@free.fr> - 2017-09-13 08:40 +0200
              Re: Scanner problem Brian <ad44@cityscape.co.uk> - 2017-09-13 11:40 +0200
              Re: Scanner problem Michael Stone <mstone@debian.org> - 2017-09-13 12:40 +0200

csiph-web