* [sisyphus] о правах на устройство для libusb/libftdi @ 2017-12-05 15:59 Gleb Kulikov 2017-12-05 19:35 ` Vladislav Zavjalov 0 siblings, 1 reply; 4+ messages in thread From: Gleb Kulikov @ 2017-12-05 15:59 UTC (permalink / raw) To: sisyphus Джентльмены, а как нынче нужно обращаться с правами на устройство? Столкнулся с тем, что с устройством на FT2232H MiniModule ( VID: 0x403, PID: 0x6010 ) можно работать только от рута. По хорошему, убрать бы из правил и загрузку ftdi_sio для этого устройства, но в /etc/udev соответствующие правила. очевидно, вшиты в огромный блоб hwdb.bin. Как это теперь положено делать правильно? Спасибо! -- С уважением, /GL ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] о правах на устройство для libusb/libftdi 2017-12-05 15:59 [sisyphus] о правах на устройство для libusb/libftdi Gleb Kulikov @ 2017-12-05 19:35 ` Vladislav Zavjalov 2017-12-06 15:31 ` Michael Shigorin 0 siblings, 1 reply; 4+ messages in thread From: Vladislav Zavjalov @ 2017-12-05 19:35 UTC (permalink / raw) To: sisyphus On Tue, Dec 05, 2017 at 10:59:38PM +0700, Gleb Kulikov wrote: > > Джентльмены, > > а как нынче нужно обращаться с правами на устройство? > > Столкнулся с тем, что с устройством на FT2232H MiniModule ( VID: 0x403, PID: > 0x6010 ) можно работать только от рута. > По хорошему, убрать бы из правил и загрузку ftdi_sio для этого устройства, но > в /etc/udev соответствующие правила. очевидно, вшиты в огромный блоб > hwdb.bin. > > Как это теперь положено делать правильно? > > Спасибо! Я в файл /etc/udev/rules.d/99-ftdi.rules написал: ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",\ ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", GROUP="users" Кстати, интересно было бы пообсуждать libmpsse, если вы или кто-либо еще ей пользуется. Я ее собирал в Сизиф, но неаккуратно, под свою задачу. И там была неразбериха с апстримом, но сейчас, мне кажется, я знаю, где он. Слава ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] о правах на устройство для libusb/libftdi 2017-12-05 19:35 ` Vladislav Zavjalov @ 2017-12-06 15:31 ` Michael Shigorin 2017-12-06 16:50 ` Vladislav Zavjalov 0 siblings, 1 reply; 4+ messages in thread From: Michael Shigorin @ 2017-12-06 15:31 UTC (permalink / raw) To: sisyphus On Tue, Dec 05, 2017 at 10:35:36PM +0300, Vladislav Zavjalov wrote: > > Столкнулся с тем, что с устройством на FT2232H MiniModule > > ( VID: 0x403, PID: 0x6010 ) можно работать только от рута. > Я в файл /etc/udev/rules.d/99-ftdi.rules написал: > > ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",\ > ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", GROUP="users" Может, собрать какой udev-rules-serial в сизиф? Только я бы GROUP="uucp" поставил по имеющейся традиции: http://www.altlinux.org/ПраваГруппПользователей -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] о правах на устройство для libusb/libftdi 2017-12-06 15:31 ` Michael Shigorin @ 2017-12-06 16:50 ` Vladislav Zavjalov 0 siblings, 0 replies; 4+ messages in thread From: Vladislav Zavjalov @ 2017-12-06 16:50 UTC (permalink / raw) To: ALT Linux Sisyphus discussions On Wed, Dec 06, 2017 at 06:31:24PM +0300, Michael Shigorin wrote: > On Tue, Dec 05, 2017 at 10:35:36PM +0300, Vladislav Zavjalov wrote: > > > Столкнулся с тем, что с устройством на FT2232H MiniModule > > > ( VID: 0x403, PID: 0x6010 ) можно работать только от рута. > > Я в файл /etc/udev/rules.d/99-ftdi.rules написал: > > > > ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",\ > > ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", GROUP="users" > > Может, собрать какой udev-rules-serial в сизиф? > Только я бы GROUP="uucp" поставил по имеющейся традиции: > http://www.altlinux.org/ПраваГруппПользователей users - это мое локальное, не дистрибутивное решение. У меня на той машине может быть 2-3-4 пользователя с равными правами. Проще им все открывать с помощью одной группы. А так uucp правильнее, видимо. Я бы сказал, что хорошо, когда устройства сами как-то по умолчанию подхватываются (без установки новых пакетов - я же про них никогда не узнаю). А, кроме того, хорошо иметь возможность написать поверх свои правила (например, жестко прибить несколько устройств с разными id к определенным /dev/<что-нибудь>, настроить доступ и т.п.). В этом смысле меня сейчас все устраивает - я быстрее свое правило напишу, чем выясню, с каком пакете оно лежит и нужно ли оно мне. Слава ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-12-06 16:50 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-12-05 15:59 [sisyphus] о правах на устройство для libusb/libftdi Gleb Kulikov 2017-12-05 19:35 ` Vladislav Zavjalov 2017-12-06 15:31 ` Michael Shigorin 2017-12-06 16:50 ` Vladislav Zavjalov
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