* [sisyphus] Сканирование
@ 2014-03-05 8:34 Sergei Epiphanov
2014-03-05 9:06 ` Андрей Черепанов
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Epiphanov @ 2014-03-05 8:34 UTC (permalink / raw)
To: sisyphus
Всем добрый день!
Имею USB-сканер HP, который в системе нормально виден и работает. Полгода
назад сканировал на нём под обычным пользователем без проблем, потом пауза. А
неделю назад начал сканировать снова и xsane почему-то не может его найти.
sane-find-scanner сообщает, что не может получить доступ к сканеру. Под root
сканер доступен и работает как надо. Поиск проблемы показал, что устройство
сканера вдруг стало 640 и root:lp. Добавил себя в группу lp, сканер стал мне
доступен.
Как можно исправить эту проблему и заставить файлу сканера быть root:scanner?
Всё-таки lp - это принтер.
#sane-find-scanner
...
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1705 [hp scanjet
scanner]) at libusb:009:002
...
# rpm -qf /etc/udev/rules.d/25-libsane.rules
libsane-1.0.24-alt2.2
# lsusb
...
Bus 009 Device 002: ID 03f0:1705 Hewlett-Packard ScanJet 5590
...
#
--
С уважением, Епифанов Сергей
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 8:34 [sisyphus] Сканирование Sergei Epiphanov
@ 2014-03-05 9:06 ` Андрей Черепанов
2014-03-05 9:15 ` Sergei Epiphanov
0 siblings, 1 reply; 12+ messages in thread
From: Андрей Черепанов @ 2014-03-05 9:06 UTC (permalink / raw)
To: sisyphus
05.03.2014 12:34, Sergei Epiphanov пишет:
> Всем добрый день!
>
> Имею USB-сканер HP, который в системе нормально виден и работает. Полгода
> назад сканировал на нём под обычным пользователем без проблем, потом пауза. А
> неделю назад начал сканировать снова и xsane почему-то не может его найти.
> sane-find-scanner сообщает, что не может получить доступ к сканеру. Под root
> сканер доступен и работает как надо. Поиск проблемы показал, что устройство
> сканера вдруг стало 640 и root:lp. Добавил себя в группу lp, сканер стал мне
> доступен.
>
> Как можно исправить эту проблему и заставить файлу сканера быть root:scanner?
> Всё-таки lp - это принтер.
>
> #sane-find-scanner
> ...
> found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1705 [hp scanjet
> scanner]) at libusb:009:002
> ...
> # rpm -qf /etc/udev/rules.d/25-libsane.rules
> libsane-1.0.24-alt2.2
> # lsusb
> ...
> Bus 009 Device 002: ID 03f0:1705 Hewlett-Packard ScanJet 5590
> ...
> #
Раньше для МФУ использовалось не явное задание группы, а через ACL.
См. getfacl /dev/bus/usb/009/002
(цифры брал отсюда:
> scanner]) at libusb:009:002
Группа scanner должна туда была прописываться. Или как вариант, в ACL
прописывается xgrp, куда входят залогиненные в Xorg пользователи.
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 9:06 ` Андрей Черепанов
@ 2014-03-05 9:15 ` Sergei Epiphanov
2014-03-05 9:51 ` Андрей Черепанов
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Epiphanov @ 2014-03-05 9:15 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
В письме от 5 марта 2014 13:06:01 пользователь Андрей Черепанов написал:
> Раньше для МФУ использовалось не явное задание группы, а через ACL.
> См. getfacl /dev/bus/usb/009/002
>
> (цифры брал отсюда:
> > scanner]) at libusb:009:002
>
> Группа scanner должна туда была прописываться. Или как вариант, в ACL
> прописывается xgrp, куда входят залогиненные в Xorg пользователи.
# getfacl /dev/bus/usb/009/002
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/009/002
# owner: root
# group: lp
user::rw-
group::rw-
mask::rw-
other::r--
#
--
С уважением, Епифанов Сергей
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 9:15 ` Sergei Epiphanov
@ 2014-03-05 9:51 ` Андрей Черепанов
2014-03-05 9:53 ` Anton Gorlov
0 siblings, 1 reply; 12+ messages in thread
From: Андрей Черепанов @ 2014-03-05 9:51 UTC (permalink / raw)
To: sisyphus
05.03.2014 13:15, Sergei Epiphanov пишет:
> В письме от 5 марта 2014 13:06:01 пользователь Андрей Черепанов написал:
>> Раньше для МФУ использовалось не явное задание группы, а через ACL.
>> См. getfacl /dev/bus/usb/009/002
>>
>> (цифры брал отсюда:
>>> scanner]) at libusb:009:002
>>
>> Группа scanner должна туда была прописываться. Или как вариант, в ACL
>> прописывается xgrp, куда входят залогиненные в Xorg пользователи.
>
> # getfacl /dev/bus/usb/009/002
> getfacl: Removing leading '/' from absolute path names
> # file: dev/bus/usb/009/002
> # owner: root
> # group: lp
> user::rw-
> group::rw-
> mask::rw-
> other::r--
> #
Мда, баг. Чинить надо.
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 9:51 ` Андрей Черепанов
@ 2014-03-05 9:53 ` Anton Gorlov
2014-03-05 9:59 ` Андрей Черепанов
0 siblings, 1 reply; 12+ messages in thread
From: Anton Gorlov @ 2014-03-05 9:53 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
udev?
05.03.2014 13:51, Андрей Черепанов пишет:
>> # getfacl /dev/bus/usb/009/002
>> >getfacl: Removing leading '/' from absolute path names
>> ># file: dev/bus/usb/009/002
>> ># owner: root
>> ># group: lp
>> >user::rw-
>> >group::rw-
>> >mask::rw-
>> >other::r--
>> >#
> Мда, баг. Чинить надо.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 9:53 ` Anton Gorlov
@ 2014-03-05 9:59 ` Андрей Черепанов
2014-03-05 10:37 ` Sergei Epiphanov
0 siblings, 1 reply; 12+ messages in thread
From: Андрей Черепанов @ 2014-03-05 9:59 UTC (permalink / raw)
To: sisyphus
05.03.2014 13:53, Anton Gorlov пишет:
> udev?
Уже завели https://bugzilla.altlinux.org/show_bug.cgi?id=28353
> 05.03.2014 13:51, Андрей Черепанов пишет:
>>> # getfacl /dev/bus/usb/009/002
>>> >getfacl: Removing leading '/' from absolute path names
>>> ># file: dev/bus/usb/009/002
>>> ># owner: root
>>> ># group: lp
>>> >user::rw-
>>> >group::rw-
>>> >mask::rw-
>>> >other::r--
>>> >#
>> Мда, баг. Чинить надо.
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 9:59 ` Андрей Черепанов
@ 2014-03-05 10:37 ` Sergei Epiphanov
2014-03-05 12:04 ` Андрей Черепанов
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Epiphanov @ 2014-03-05 10:37 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
В письме от 5 марта 2014 13:59:19 пользователь Андрей Черепанов написал:
> 05.03.2014 13:53, Anton Gorlov пишет:
> > udev?
>
> Уже завели https://bugzilla.altlinux.org/show_bug.cgi?id=28353
>
> > 05.03.2014 13:51, Андрей Черепанов пишет:
> >>> # getfacl /dev/bus/usb/009/002
> >>>
> >>> >getfacl: Removing leading '/' from absolute path names
> >>> ># file: dev/bus/usb/009/002
> >>> ># owner: root
> >>> ># group: lp
> >>> >user::rw-
> >>> >group::rw-
> >>> >mask::rw-
> >>> >other::r--
> >>> >#
> >>
> >> Мда, баг. Чинить надо.
В 25-libsane.rules уже есть строка:
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1705", MODE="0664",
GROUP="scanner", ENV{libsane_matched}="yes"
Но почему она не отрабатывается?
--
С уважением, Епифанов Сергей
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 10:37 ` Sergei Epiphanov
@ 2014-03-05 12:04 ` Андрей Черепанов
2014-03-06 5:41 ` Sergei Epiphanov
0 siblings, 1 reply; 12+ messages in thread
From: Андрей Черепанов @ 2014-03-05 12:04 UTC (permalink / raw)
To: sisyphus
05.03.2014 14:37, Sergei Epiphanov пишет:
> В письме от 5 марта 2014 13:59:19 пользователь Андрей Черепанов написал:
>> 05.03.2014 13:53, Anton Gorlov пишет:
>>> udev?
>>
>> Уже завели https://bugzilla.altlinux.org/show_bug.cgi?id=28353
>>
>>> 05.03.2014 13:51, Андрей Черепанов пишет:
>>>>> # getfacl /dev/bus/usb/009/002
>>>>>
>>>>>> getfacl: Removing leading '/' from absolute path names
>>>>>> # file: dev/bus/usb/009/002
>>>>>> # owner: root
>>>>>> # group: lp
>>>>>> user::rw-
>>>>>> group::rw-
>>>>>> mask::rw-
>>>>>> other::r--
>>>>>> #
>>>>
>>>> Мда, баг. Чинить надо.
>
> В 25-libsane.rules уже есть строка:
>
> ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1705", MODE="0664",
> GROUP="scanner", ENV{libsane_matched}="yes"
>
> Но почему она не отрабатывается?
Правило по установке группы для принтера сработало.
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-05 12:04 ` Андрей Черепанов
@ 2014-03-06 5:41 ` Sergei Epiphanov
2014-03-06 6:24 ` Андрей Черепанов
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Epiphanov @ 2014-03-06 5:41 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
В письме от 5 марта 2014 16:04:20 пользователь Андрей Черепанов написал:
> 05.03.2014 14:37, Sergei Epiphanov пишет:
> > В письме от 5 марта 2014 13:59:19 пользователь Андрей Черепанов написал:
> >> 05.03.2014 13:53, Anton Gorlov пишет:
> >>> udev?
> >>
> >> Уже завели https://bugzilla.altlinux.org/show_bug.cgi?id=28353
> >>
> >>> 05.03.2014 13:51, Андрей Черепанов пишет:
> >>>>> # getfacl /dev/bus/usb/009/002
> >>>>>
> >>>>>> getfacl: Removing leading '/' from absolute path names
> >>>>>> # file: dev/bus/usb/009/002
> >>>>>> # owner: root
> >>>>>> # group: lp
> >>>>>> user::rw-
> >>>>>> group::rw-
> >>>>>> mask::rw-
> >>>>>> other::r--
> >>>>>> #
> >>>>
> >>>> Мда, баг. Чинить надо.
> >
> > В 25-libsane.rules уже есть строка:
> >
> > ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1705", MODE="0664",
> > GROUP="scanner", ENV{libsane_matched}="yes"
> >
> > Но почему она не отрабатывается?
>
> Правило по установке группы для принтера сработало.
Интересно, кто придумал эту строку:
ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp",
MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes",
ENV{hp_test}="yes", ENV{ID_HPLIP}="1", SYMLINK+="hplip/$attr{manufactur
er}-$attr{serial}"
в файле /lib/udev/rules.d/56-hpmud.rules из пакета hplip-common. Похоже, это
она всё изменила.
--
С уважением, Епифанов Сергей
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-06 5:41 ` Sergei Epiphanov
@ 2014-03-06 6:24 ` Андрей Черепанов
2014-03-06 7:53 ` Sergei Epiphanov
0 siblings, 1 reply; 12+ messages in thread
From: Андрей Черепанов @ 2014-03-06 6:24 UTC (permalink / raw)
To: sisyphus
06.03.2014 09:41, Sergei Epiphanov пишет:
> В письме от 5 марта 2014 16:04:20 пользователь Андрей Черепанов написал:
>> 05.03.2014 14:37, Sergei Epiphanov пишет:
>>> В письме от 5 марта 2014 13:59:19 пользователь Андрей Черепанов написал:
>>>> 05.03.2014 13:53, Anton Gorlov пишет:
>>>>> udev?
>>>>
>>>> Уже завели https://bugzilla.altlinux.org/show_bug.cgi?id=28353
>>>>
>>>>> 05.03.2014 13:51, Андрей Черепанов пишет:
>>>>>>> # getfacl /dev/bus/usb/009/002
>>>>>>>
>>>>>>>> getfacl: Removing leading '/' from absolute path names
>>>>>>>> # file: dev/bus/usb/009/002
>>>>>>>> # owner: root
>>>>>>>> # group: lp
>>>>>>>> user::rw-
>>>>>>>> group::rw-
>>>>>>>> mask::rw-
>>>>>>>> other::r--
>>>>>>>> #
>>>>>>
>>>>>> Мда, баг. Чинить надо.
>>>
>>> В 25-libsane.rules уже есть строка:
>>>
>>> ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1705", MODE="0664",
>>> GROUP="scanner", ENV{libsane_matched}="yes"
>>>
>>> Но почему она не отрабатывается?
>>
>> Правило по установке группы для принтера сработало.
>
> Интересно, кто придумал эту строку:
>
> ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp",
> MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes",
> ENV{hp_test}="yes", ENV{ID_HPLIP}="1", SYMLINK+="hplip/$attr{manufactur
> er}-$attr{serial}"
>
> в файле /lib/udev/rules.d/56-hpmud.rules из пакета hplip-common. Похоже, это
> она всё изменила.
Это не должно убирать scanner из acl файла устройства.
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-06 6:24 ` Андрей Черепанов
@ 2014-03-06 7:53 ` Sergei Epiphanov
2014-03-06 8:23 ` Андрей Черепанов
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Epiphanov @ 2014-03-06 7:53 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
В письме от 6 марта 2014 10:24:48 пользователь Андрей Черепанов написал:
> 06.03.2014 09:41, Sergei Epiphanov пишет:
...
> > Интересно, кто придумал эту строку:
> >
> > ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp",
> > MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes",
> > ENV{hp_test}="yes", ENV{ID_HPLIP}="1", SYMLINK+="hplip/$attr{manufactur
> > er}-$attr{serial}"
> >
> > в файле /lib/udev/rules.d/56-hpmud.rules из пакета hplip-common. Похоже,
> > это она всё изменила.
>
> Это не должно убирать scanner из acl файла устройства.
Может, должна быть запись GROUP+="lp"?
--
С уважением, Епифанов Сергей
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Сканирование
2014-03-06 7:53 ` Sergei Epiphanov
@ 2014-03-06 8:23 ` Андрей Черепанов
0 siblings, 0 replies; 12+ messages in thread
From: Андрей Черепанов @ 2014-03-06 8:23 UTC (permalink / raw)
To: sisyphus
06.03.2014 11:53, Sergei Epiphanov пишет:
> В письме от 6 марта 2014 10:24:48 пользователь Андрей Черепанов написал:
>> 06.03.2014 09:41, Sergei Epiphanov пишет:
> ...
>>> Интересно, кто придумал эту строку:
>>>
>>> ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp",
>>> MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes",
>>> ENV{hp_test}="yes", ENV{ID_HPLIP}="1", SYMLINK+="hplip/$attr{manufactur
>>> er}-$attr{serial}"
>>>
>>> в файле /lib/udev/rules.d/56-hpmud.rules из пакета hplip-common. Похоже,
>>> это она всё изменила.
>>
>> Это не должно убирать scanner из acl файла устройства.
>
> Может, должна быть запись GROUP+="lp"?
Нет такого синтаксиса.
http://sourceforge.net/apps/mediawiki/gizmod/index.php?title=HOWTO_-_Setting_Input_Device_Permissions_-_Creating_a_udev_Rule
ACL ставятся совсем по-другому:
http://enotty.pipebreaker.pl/2012/05/23/linux-automatic-user-acl-management/
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-03-06 8:23 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-05 8:34 [sisyphus] Сканирование Sergei Epiphanov
2014-03-05 9:06 ` Андрей Черепанов
2014-03-05 9:15 ` Sergei Epiphanov
2014-03-05 9:51 ` Андрей Черепанов
2014-03-05 9:53 ` Anton Gorlov
2014-03-05 9:59 ` Андрей Черепанов
2014-03-05 10:37 ` Sergei Epiphanov
2014-03-05 12:04 ` Андрей Черепанов
2014-03-06 5:41 ` Sergei Epiphanov
2014-03-06 6:24 ` Андрей Черепанов
2014-03-06 7:53 ` Sergei Epiphanov
2014-03-06 8:23 ` Андрей Черепанов
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git