Users from group scanner/saned are not able to see/use scanners on 18.04

Asked by Mateusz Korniak

I moved old scanner hardware to Ubuntu 18.04 and noticed that regular users are not able to see/use USB scanners.
Running:
 scanimage -L
returns empty scanner list, while running:
 sudo scanimage -L
shows scanners present.

I tried to follow
https://help.ubuntu.com/community/SettingScannerPermissions but solutions presented there are overkill to me.

I had to add extre udev rule:
 /lib/udev/rules.d/61-libsane1-extra.rules
with:
 ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
to have scanners working.

Is it Ubuntu bug, feature?
If feature how regular users are supposed to work with usb scanners?

TIA, regards,

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

ls /dev/bus/usb/*

Thank

Revision history for this message
Mateusz Korniak (matkor76) said :
#2

root@host4:~# ls /dev/bus/usb/*
/dev/bus/usb/001:
001 002 003

/dev/bus/usb/002:
001

/dev/bus/usb/003:
001 002 004

/dev/bus/usb/004:
001

Revision history for this message
Mateusz Korniak (matkor76) said :
#3

root@host4:~# ls /dev/bus/usb/* -la
/dev/bus/usb/001:
total 0
drwxr-xr-x 2 root root 100 Feb 1 07:03 .
drwxr-xr-x 6 root root 120 Feb 1 07:03 ..
crw-rw-r-- 1 root root 189, 0 Feb 1 13:26 001
crw-rw-r-- 1 root root 189, 1 Feb 1 13:26 002
crw-rw-r-- 1 root root 189, 2 Feb 1 13:26 003

/dev/bus/usb/002:
total 0
drwxr-xr-x 2 root root 60 Feb 1 07:03 .
drwxr-xr-x 6 root root 120 Feb 1 07:03 ..
crw-rw-r-- 1 root root 189, 128 Feb 1 13:26 001

/dev/bus/usb/003:
total 0
drwxr-xr-x 2 root root 100 Feb 1 12:09 .
drwxr-xr-x 6 root root 120 Feb 1 07:03 ..
crw-rw-r-- 1 root root 189, 256 Feb 1 13:26 001
crw-rw-r--+ 1 root root 189, 257 Feb 1 15:26 002
crw-rw-r--+ 1 root lp 189, 259 Feb 1 13:26 004

/dev/bus/usb/004:
total 0
drwxr-xr-x 2 root root 60 Feb 1 07:03 .
drwxr-xr-x 6 root root 120 Feb 1 07:03 ..
crw-rw-r-- 1 root root 189, 384 Feb 1 13:26 001

Revision history for this message
Mateusz Korniak (matkor76) said :
#4

/dev/bus/usb/003:
crw-rw-r--+ 1 root root 189, 257 Feb 1 15:26 002
crw-rw-r--+ 1 root lp 189, 259 Feb 1 13:26 004

Above two entries are identified as scanners (libsane_matched) by udev, so now they have g:scanner:rw.
In original Ubuntu there ware without ACLs set.

2nd entry is multi functional printer, so it has lp group set by udev.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

what is the output of:

groups

Please?

Revision history for this message
Mateusz Korniak (matkor76) said :
#6

matkor@host4:~$ groups
users adm cdrom sudo lpadmin scanner saned

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.