All of lore.kernel.org
 help / color / mirror / Atom feed
* udev doesn't set group owner and permissions on Canon PowerShot S80
@ 2006-04-28  1:34 Philippe Gramoullé
  2006-04-28  3:26 ` udev doesn't set group owner and permissions on Canon PowerShot S80 camera Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Philippe Gramoullé @ 2006-04-28  1:34 UTC (permalink / raw)
  To: linux-hotplug


 Hello,

Since a few udev release (well since few Debian upgrades as well :)), i can't have the correct
group owner and permissions set right anymore, when i power on my Canon PowerShot S80 camera (04a9/30fa).

It used to work fine, after i changed the rules.d/025_libgphoto2.rules file to have the correct
IDs.

Now, when i power the camera on, i have this:

UEVENT[1146185703.616764] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1
UDEV  [1146185703.616881] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1
UEVENT[1146185703.620711] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1/2-1:1.0
UDEV  [1146185703.651882] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1/2-1:1.0

According to the following rule:

# Canon PowerShot S80 (normal mode)
SYSFS{idVendor}="04a9", SYSFS{idProduct}="30fa", MODE="0660", GROUP="camera"

i would expect to have :

# ls -l /proc/bus/usb/002/
total 0
-rw-r--r-- 1 root root 43 Apr 26 12:24 001
-rw-rw-r-- 1 root camera 57 Apr 28 02:58 009

Instead, i have

# ls -l /proc/bus/usb/002/
total 0
-rw-r--r-- 1 root root 43 Apr 26 12:24 001
-rw-r--r-- 1 root root 57 Apr 28 02:58 009


Thanks to let me know what did i miss

Philippe

Debian Sid, Udev 0.91-1, Kernel 2.6.13.1


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: udev doesn't set group owner and permissions on Canon PowerShot S80 camera
  2006-04-28  1:34 udev doesn't set group owner and permissions on Canon PowerShot S80 Philippe Gramoullé
@ 2006-04-28  3:26 ` Greg KH
  2006-04-28  3:31 ` Kay Sievers
  2006-04-28 12:38 ` udev doesn't set group owner and permissions on Canon PowerShot Philippe Gramoullé
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-04-28  3:26 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Apr 28, 2006 at 03:34:06AM +0200, Philippe Gramoull? wrote:
> 
>  Hello,
> 
> Since a few udev release (well since few Debian upgrades as well :)), i can't have the correct
> group owner and permissions set right anymore, when i power on my Canon PowerShot S80 camera (04a9/30fa).
> 
> It used to work fine, after i changed the rules.d/025_libgphoto2.rules file to have the correct
> IDs.
> 
> Now, when i power the camera on, i have this:
> 
> UEVENT[1146185703.616764] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1
> UDEV  [1146185703.616881] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1
> UEVENT[1146185703.620711] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1/2-1:1.0
> UDEV  [1146185703.651882] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1/2-1:1.0
> 
> According to the following rule:
> 
> # Canon PowerShot S80 (normal mode)
> SYSFS{idVendor}="04a9", SYSFS{idProduct}="30fa", MODE="0660", GROUP="camera"
> 
> i would expect to have :
> 
> # ls -l /proc/bus/usb/002/

Woah.  /proc/bus/usb/ is usbfs and has nothing to do with udev.

I think you need to look at /dev/bus/usb/ which should have the proper
permissions on it.

If in doubt, run udevtest on the device to see where it shows up.

Hope this helps,

greg k-h


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: udev doesn't set group owner and permissions on Canon PowerShot S80 camera
  2006-04-28  1:34 udev doesn't set group owner and permissions on Canon PowerShot S80 Philippe Gramoullé
  2006-04-28  3:26 ` udev doesn't set group owner and permissions on Canon PowerShot S80 camera Greg KH
@ 2006-04-28  3:31 ` Kay Sievers
  2006-04-28 12:38 ` udev doesn't set group owner and permissions on Canon PowerShot Philippe Gramoullé
  2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2006-04-28  3:31 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Apr 28, 2006 at 03:34:06AM +0200, Philippe Gramoullé wrote:
> Since a few udev release (well since few Debian upgrades as well :)), i can't have the correct
> group owner and permissions set right anymore, when i power on my Canon PowerShot S80 camera (04a9/30fa).
> 
> It used to work fine, after i changed the rules.d/025_libgphoto2.rules file to have the correct
> IDs.
> 
> Now, when i power the camera on, i have this:
> 
> UEVENT[1146185703.616764] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1
> UDEV  [1146185703.616881] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1
> UEVENT[1146185703.620711] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1/2-1:1.0
> UDEV  [1146185703.651882] add@/devices/pci0000:00/0000:00:1f.4/usb2/2-1/2-1:1.0
> 
> According to the following rule:
> 
> # Canon PowerShot S80 (normal mode)
> SYSFS{idVendor}="04a9", SYSFS{idProduct}="30fa", MODE="0660", GROUP="camera"
> 
> i would expect to have :
> 
> # ls -l /proc/bus/usb/002/
> total 0
> -rw-r--r-- 1 root root 43 Apr 26 12:24 001
> -rw-rw-r-- 1 root camera 57 Apr 28 02:58 009
> 
> Instead, i have
> 
> # ls -l /proc/bus/usb/002/
> total 0
> -rw-r--r-- 1 root root 43 Apr 26 12:24 001
> -rw-r--r-- 1 root root 57 Apr 28 02:58 009
> 
> 
> Thanks to let me know what did i miss
> 
> Philippe
> 
> Debian Sid, Udev 0.91-1, Kernel 2.6.13.1

Why are you running such an old kernel with the latest udev?

The usb device nodes have changed to real nodes in the meantime and
the proc interface is deprecated. GROUP assignments never worked
for proc nodes and udev never cared about his. Something else may have
changed the ownership in the past which stopped doing it, but it's not
udev.

It's not likely that someone here has an idea how to help with such
a setup.

Kay


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: udev doesn't set group owner and permissions on Canon PowerShot
  2006-04-28  1:34 udev doesn't set group owner and permissions on Canon PowerShot S80 Philippe Gramoullé
  2006-04-28  3:26 ` udev doesn't set group owner and permissions on Canon PowerShot S80 camera Greg KH
  2006-04-28  3:31 ` Kay Sievers
@ 2006-04-28 12:38 ` Philippe Gramoullé
  2 siblings, 0 replies; 4+ messages in thread
From: Philippe Gramoullé @ 2006-04-28 12:38 UTC (permalink / raw)
  To: linux-hotplug


Hello,

On Fri, 28 Apr 2006 05:31:35 +0200
Kay Sievers <kay.sievers@vrfy.org> wrote:

  | Why are you running such an old kernel with the latest udev?
  | 
  | The usb device nodes have changed to real nodes in the meantime and
  | the proc interface is deprecated. GROUP assignments never worked
  | for proc nodes and udev never cared about his. Something else may have
  | changed the ownership in the past which stopped doing it, but it's not
  | udev.

Thanks for the hint and sorry for the noise. I upgraded to 2.6.16.11 and all is
fine again.

Truly yours,

Philippe


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-28 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-28  1:34 udev doesn't set group owner and permissions on Canon PowerShot S80 Philippe Gramoullé
2006-04-28  3:26 ` udev doesn't set group owner and permissions on Canon PowerShot S80 camera Greg KH
2006-04-28  3:31 ` Kay Sievers
2006-04-28 12:38 ` udev doesn't set group owner and permissions on Canon PowerShot Philippe Gramoullé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.