> From: Florian Kulzer, Sent: Wednesday, July 8, 2009 2:34:43 PM

> On Tue, Jul 07, 2009 at 14:27:38 -0700, Alejandro Salas wrote:
> > > On Tue, Jul 07, 2009 at 11:32:10 -0700, Alejandro Salas wrote:
> > > > > The fuse group should have been created by the post-installation 
> > > > > script
> > > > > of the fuse-utils package. 
> > > > >
> > > > >>                                     I created it and added my user 
> > > > >> to the group.
> > > > >> I still get the same error message. :-(. Any ideas?

[...]

> > I don't see anything wrong here; it looks like both udev and HAL have
> > done exactly what they were supposed to be doing.
> > 
> > What output do you get from:
> > 
> > ls -l /dev/fuse
> > 
> > ls -l /dev/bus/usb/*
> 
> Here they are:
> 
> ls -l /dev/fuse 
> crw-rw---- 1 root fuse 10, 229 2009-07-08 10:41 /dev/fuse
> 
> 
> ls -l /dev/bus/usb/*
> /dev/bus/usb/001:
> total 0
> crw-rw-r-- 1 root root 189, 0 2009-07-08 06:06 001
> 
> /dev/bus/usb/002:
> total 0
> crw-rw-r-- 1 root root 189, 128 2009-07-08 06:06 001
> 
> /dev/bus/usb/003:
> total 0
> crw-rw-r-- 1 root root 189, 256 2009-07-08 06:06 001
> crw-rw-r-- 1 root root 189, 257 2009-07-08 06:06 002
> 
> /dev/bus/usb/004:
> total 0
> crw-rw-r-- 1 root root 189, 384 2009-07-08 06:06 001
> 
> /dev/bus/usb/005:
> total 0
> crw-rw-r-- 1 root root 189, 512 2009-07-08 06:06 001
> crw-rw-r-- 1 root root 189, 513 2009-07-08 06:06 002
> 
> /dev/bus/usb/006:
> total 0
> crw-rw-r-- 1 root root 189, 640 2009-07-08 06:06 001
> 
> /dev/bus/usb/007:
> total 0
> crw-rw-r-- 1 root root 189, 768 2009-07-08 06:06 001
> crw-rw-r-- 1 root root 189, 770 2009-07-08 15:59 003
> 
> The last entry ('003') appeared only after plugging the iphone to a
> usb port. Everything else remained the same.
>
> That looks OK to me, too. I am afraid you will need someone who actually
> uses an iPhone under Linux to help you further. (I do not have an iPhone
> myself; I had hoped that I would be able to spot something suspicious in
> the general device-plugging behavior but that does not seem to be the
> case.)

Thanks for all your help. I got another piece of information from Amain on this 
blog: 
http://blog.zoomeren.nl/2009/03/24/mount-iphone-in-linux-using-usb-ifuse-libiphone/comment-page-1/#comment-44

I ran strace and found out that the problem is that my user doesn't have access 
to the raw usb device. Here's a copy of a few lines of the strace output:

open(”/dev/bus/usb/006/002″, O_RDWR)    = -1 EACCES (Permission denied)
open(”/dev/bus/usb/006/002″, O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfa67610)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open(”/dev/bus/usb/006/001″, O_RDWR)    = -1 EACCES (Permission denied)
open(”/dev/bus/usb/006/001″, O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfa67610)    = -1 EPERM (Operation not permitted)
close(3)

Another thing Amain pointed me out is that his usb devices have the following 
ownerships:

ls -l /dev/bus/usb/001/003
crw-rw-r–+ 1 root plugdev 189, 2 2009-07-24 22:21 /dev/bus/usb/001/003

And his user belongs to the plugdev group. As I posted last time.. my devices 
belong to root root... could this be the problem? Any ideas? Thanks a lot for 
your effort


      

Reply via email to