Le Fri, 31 Oct 2008 09:10:19 -0700 "Dan Nicholson" <[EMAIL PROTECTED]> a écrit :
> On Fri, Oct 31, 2008 at 6:38 AM, Nicolas FRANCOIS > <[EMAIL PROTECTED]> wrote: > > ...with my brain, I'm quite sure. > > > > I have serious problems with devices permissions : I can read a DVD with > > MPlayer being root, but not being me. Same thing with gphoto2 : I can > > download the photos from my camera being root, but not as a normal user. > > > > My normal user belongs to disk, usb, video, haldaemon... I don't know > > what to add ! Some of the devices created by udev in the dev directory do > > seem to be owned by root, so this may be the problem. > > You need to look at the /dev permissions and associated udev rules. > The CD/DVD devices (look at the /dev/cdrom* symlinks) are created with > cdrom group permissions. I'm not sure what method you followed to > install libgphoto2, but the package contains a program to create udev > rules with an appropriate group (I was using the camera group). > However, without the rules, I think the regular usb udev rule should > be used, which sets the group to usb. Need some more details here. root [ ~ ]# ls -l /dev/cdr* lrwxrwxrwx 1 root root 3 nov 9 2008 /dev/cdrom -> hdd lrwxrwxrwx 1 root root 3 nov 9 2008 /dev/cdrw -> hdd root [ ~ ]# ls -l /dev/hdd brw-rw---- 1 root cdrom 22, 64 nov 9 2008 /dev/hdd root [ ~ ]# ls -l /dev/bus/usb/00 001/ 002/ 003/ 004/ 005/ root [ ~ ]# ls -l /dev/bus/usb/005/003 crw-r--r-- 1 root usb 189, 514 nov 9 02:47 /dev/bus/usb/005/003 The permissions looks OK. I belong to groups cdrom and usb. I can mount and umount the cdom, and my USB key. But I can't access at my daughter's mtp mp3 drive : nico [ ~ ]$ mtp-detect libmtp version: 0.2.6.1 Attempting to connect device(s) usb_claim_interface(): Operation not permitted LIBMTP PANIC: Unable to initialize device 1 LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1599 Detect: There has been an error connecting. Exiting But root can : root [ ~ ]# mtp-detect libmtp version: 0.2.6.1 Attempting to connect device(s) PTP: Opening session Detect: Successfully connected 1 devices USB low-level info: Using kernel interface "usbfs" bcdUSB: 512 bDeviceClass: 0 bDeviceSubClass: 0 bDeviceProtocol: 0 idVendor: 04e8 idProduct: 507d IN endpoint maxpacket: 512 bytes OUT endpoint maxpacket: 512 bytes Device flags: 0x00000000 [...] Device info: Manufacturer: Samsung Electronics Model: Samsung YP-U3 Device version: VER 1.11 FR Serial number: 2798FD3BBEF00000 Vendor extension ID: 0x00000006 Vendor extension description: microsoft.com/WMDRMPD: 10.1 Detected object size: 64 bits Supported operations: [...] PTP: Closing session OK. This is driving me a little crazy. I know I used to access this device on my previous installation... which is now on a burned down HD :-( Another similar problem : using KDE, I used to get a window asking me what to do when I plugged a removable device, like a USB key. I don't have it anymore. I configured HAL and Dbus, and recompiled kdebase to use it... with no effect. Can someone help me with those permissions issues ? I'm getting a bit nuts on this ! \bye -- Nicolas FRANCOIS | /\ http://nicolas.francois.free.fr | |__| X--/\\ We are the Micro$oft. _\_V Resistance is futile. You will be assimilated. darthvader penguin -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
