Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Права доступа к usb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
m1chael
n00b
n00b


Joined: 25 May 2006
Posts: 47
Location: Украина

PostPosted: Mon Jun 12, 2006 8:44 am    Post subject: Права доступа к usb Reply with quote

Установил gphoto2 (emerge gphoto2). Сия прога отказывается работать под обычным пользователем (Could not claim the USB device), хотя под рутом работает без проблем. Командой group проверяю в каких группах состоит обычный пользователь:
wheel floppy audio cdrom video usb users portage vmware burning plugdev
Группы usb и plugdev присутствуют. Тогда я не пойму почему нет доступа к цифровой камере у обычного пользователя.
Буду рад любой помощи. :)
Back to top
View user's profile Send private message
ZmiyGorinich
Guru
Guru


Joined: 27 Feb 2004
Posts: 369
Location: Zaporizhzhe, Ukraine

PostPosted: Mon Jun 12, 2006 9:01 am    Post subject: Reply with quote

Иногда надо выйти из под этого юзера и зайти опять...
_________________
Home: Athlon XP 2000+, ATI Radeon 9200 64Mb, 512Mb, hda:40Gb, hdb:120Gb, DVD-RW
Work : Duron 1.4, S3 ProSavage8 32Mb, 512Mb, hda:40Gb, CD-RW
Design, programming, hosting
Back to top
View user's profile Send private message
m1chael
n00b
n00b


Joined: 25 May 2006
Posts: 47
Location: Украина

PostPosted: Mon Jun 12, 2006 9:04 am    Post subject: Reply with quote

ZmiyGorinich wrote:
Иногда надо выйти из под этого юзера и зайти опять...


Та я уже и перегружался.
Back to top
View user's profile Send private message
m1chael
n00b
n00b


Joined: 25 May 2006
Posts: 47
Location: Украина

PostPosted: Mon Jun 12, 2006 9:29 am    Post subject: Reply with quote

нашёл ответ!!

when you plug in a usb device udev is responsible for setting up device nodes and the like.

edit /etc/udev/rules.d/50-udev.rules

search for the line with SUBSYSTEM=="usb_device"
right after that line change
MODE="0644" to MODE="0777"

now run udevstart

Now whenever a new device is plugged in it gets the right permissions automagically!
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Mon Jun 12, 2006 9:52 am    Post subject: Reply with quote

имхо, добавить/поправить GROUP="usb" правильнее
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum