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

Re: usbfs devmode problem on 2.6.1-ben1



Le mer 21/01/2004 à 11:37, Benjamin Herrenschmidt a écrit :
> On Wed, 2004-01-21 at 04:22, mammique wrote:
> > Hi,
> > 
> > i try to use an usb digital camera on an AlBook under debian unstable
> > with kernel 2.6.1-ben1. Gphoto2 works well as root but not as normal
> > user, usbfs seems to be mounted correctly with devmode=0666 wich should
> > provide access to usb device r/w for normal user :
> 
> I've had this problem before, though I didn't quite figure out what
> was going on (I admit I didn't spend a lot of time investigating
> neither).
> 
> Could you fwd to the usb-devel list ?
> 

Done, i attached the reply :-)

> If you don't get an answer there, I'll try to find some time to
> investigate myself again. I'm quite busy lately though...
> 
> Ben.
-- 
mammique <mammique@lamenagerie.com>
--- Begin Message ---
Content-Description: Message transféré - usbfs devmode problem on 2.6.1-ben1
> Date: Tue, 20 Jan 2004 18:22:22 +0100
> From: mammique <mammique@lamenagerie.com>
> To: debian-powerpc@lists.debian.org
> Subject: usbfs devmode problem on 2.6.1-ben1
> 
> Hi,
> 
> i try to use an usb digital camera on an AlBook under debian unstable
> with kernel 2.6.1-ben1. Gphoto2 works well as root but not as normal
> user, usbfs seems to be mounted correctly with devmode=0666 wich should
> provide access to usb device r/w for normal user :
> 
> # mount
> /dev/hda4 on / type ext3 (rw,errors=remount-ro)
> proc on /proc type proc (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> /dev/hda6 on /home type ext3 (rw)
> sysfs on /sys type sysfs (rw)
> usbfs on /proc/bus/usb type usbfs (rw,devmode=0666)
> 
> OK, but if i look at real perms on filesystem :
> 
> $ ls -la /proc/bus/usb/001/
> total 0
> dr-xr-xr-x    2 root     root            0 Jan 20 15:37 .
> drwxr-xr-x    6 root     root            0 Jan 20 15:37 ..
> -rw-r--r--    1 root     root           43 Jan 20 15:37 001
> -rw-r--r--    1 root     root          211 Jan 20 15:37 002
> 
> it seems the devmode=0666 perms were not applied. Does somebody knows
> why ? Is it a bug ?

It is a bug.  Look at http://bugme.osdl.org/show_bug.cgi?id=1418 for
more information.

Sorry,

greg k-h

--- End Message ---

Reply to: