Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wrong permission on camera-device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
doitux
n00b
n00b


Joined: 19 Sep 2006
Posts: 8

PostPosted: Tue Oct 10, 2006 12:01 am    Post subject: wrong permission on camera-device Reply with quote

Hi

Since a few weeks, may be after an update i cannot longer access my usb-camera "ixus 400" as normal user. the user is in "plugdev" group, and "gphoto2 --get-all-files" works as root, but not as normal user.
So i checked permisson on usb-device after plug in:

Code:
hammer Desktop # lsusb
Bus 002 Device 017: ID 04a9:3075 Canon, Inc. IXUS 400 Camera

hammer Desktop # ls -l /proc/bus/usb/002/017
-rw-rw---- 1 root plugdev 57 10. Okt 01:51 /proc/bus/usb/002/017

hammer Desktop # ls -l /dev/bus/usb/002/017
crw-r--r-- 1 root root 189, 144 10. Okt 01:51 /dev/bus/usb/002/017


The /proc permission are ok. But in /dev there are wrong permissions. What can i do here?
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Tue Oct 10, 2006 9:25 am    Post subject: Reply with quote

can u change the permissions on the /dev/ directory using chmod ?
Back to top
View user's profile Send private message
doitux
n00b
n00b


Joined: 19 Sep 2006
Posts: 8

PostPosted: Tue Oct 10, 2006 12:30 pm    Post subject: Reply with quote

Yes this works:

Code:
hammer doitux # lsusb
Bus 002 Device 019: ID 04a9:3075 Canon, Inc. IXUS 400 Camera

hammer doitux # ls -l /dev/bus/usb/002/019
crw-r--r-- 1 root root 189, 146 10. Okt 14:25 /dev/bus/usb/002/019

hammer doitux # chmod ugo+rwx /dev/bus/usb/002/019

hammer doitux # ls -l /dev/bus/usb/002/019
crwxrwxrwx 1 root root 189, 146 10. Okt 14:25 /dev/bus/usb/002/019


But i think permissions should be set correctly by hotplug/udev. :?
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Tue Oct 10, 2006 12:44 pm    Post subject: Reply with quote

Just write a simple udev rule for your camera and you will be in
business.
Back to top
View user's profile Send private message
doitux
n00b
n00b


Joined: 19 Sep 2006
Posts: 8

PostPosted: Tue Oct 10, 2006 5:18 pm    Post subject: Reply with quote

Yes i can do. But i try to find the reason of the problem. i think an update have destroyed an working rule, because it works as i expected before last update.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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