2003-07-25 09:44:12

by Kilobug

[permalink] [raw]
Subject: 2.6.0-test1, usbfs: devgid parameter seems ignored


Hello,

I've tried Linux 2.6.0-test1, -ac1 and -ac3 on two computers, and each
time the options passed (like devgid or devmode) to usbfs when mouting
it seem to be ignored:

(kilobug@drizzt, 8) ~ $ sudo mount none -t usbfs /proc/bus/usb -o devgid=143,devbmode=0664
(kilobug@drizzt, 9) ~ $ ls /proc/bus/usb
001 002 devices
(kilobug@drizzt, 10) ~ $ ls -l /proc/bus/usb
total 0
dr-xr-xr-x 2 root root 0 Jul 25 09:34 001
dr-xr-xr-x 2 root root 0 Jul 25 09:34 002
-r--r--r-- 1 root root 0 Jul 25 09:34 devices
(kilobug@drizzt, 11) ~ $ ls -l /proc/bus/usb/001/
total 0
-rw-r--r-- 1 root root 43 Jul 25 09:34 001

With exactly the same entry in fstab:
/proc/bus/usb /proc/bus/usb usbdevfs rw,devmode=0664,devgid=143 0 0
it works fine with 2.4.

It's pretty annoying to be forced to use sudo just to download photos
from my camera ! ;)

--
Gael Le Mignot "Kilobug" - [email protected] - http://kilobug.free.fr
GSM : 06.71.47.18.22 (in France) ICQ UIN : 7299959
Fingerprint : 1F2C 9804 7505 79DF 95E6 7323 B66B F67B 7103 C5DA

Member of HurdFr: http://hurdfr.org - The GNU Hurd: http://hurd.gnu.org


2003-07-26 16:46:05

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.0-test1, usbfs: devgid parameter seems ignored

On Fri, Jul 25, 2003 at 12:02:48PM +0200, Ga?l Le Mignot wrote:
>
> Hello,
>
> I've tried Linux 2.6.0-test1, -ac1 and -ac3 on two computers, and each
> time the options passed (like devgid or devmode) to usbfs when mouting
> it seem to be ignored:
>
> (kilobug@drizzt, 8) ~ $ sudo mount none -t usbfs /proc/bus/usb -o devgid=143,devbmode=0664

Hm, you are right, thanks for reporting this.

Could you possibly dump this info into a new bug in the kernel bug
tracking system at bugzilla.kernel.org so I don't forget to fix this?

thanks,

greg k-h