[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fw: Mounting Iphone with Ifuse as User



On Sat, Jul 25, 2009 at 09:50:00 -0700, Alejandro Salas wrote:
> > 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:

[...]

> 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)

That is indeed pretty clear; it seems that write access to the raw USB
device is required.

> 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

So his Ubuntu changes the group of the iPhone-associated USB (hub?)
device to plugdev. That is one possibility to give write access to a
select group of users. They furthermore seem to have some additional
access control on the device file, as can be seen from the "+" at the
end of the permissions string.

> 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?

I would add your normal user to the plugdev group if you have not done
so already. Then I would manually (as root) change the group of the
relevant USB device file to plugdev and test if your user can access the
iPhone. If this works then we can try to figure out a udev rule to make
the change to plugdev automatic.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: