Bug#360526: libgphoto2-2: Fails to properly set permissions on usb device

2006-04-03 Thread Frederic Peters
Max Gilead wrote:

 Package: libgphoto2-2
 Version: 2.1.6-7
 Severity: important
 
 
 While there are numerous bugs filed with problems similar to this one all of
 them either are reported for previous versions of kernel/libraries and/or are
 not exactly the same. I tried solutions offered in the bug reports (if
 available) but nothing I tried worked.
 
 After system update two days ago importing photos from camera stopped
 working as regular user. It works fine when 'gthumb --import-photos' is run
 as root or I run 'chmod -R a+rw /dev/bus/usb/' before trying as regular user.
 
 Output of gthumb is attached below.

Which version of udev are you using ?



Frederic


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#360526: libgphoto2-2: Fails to properly set permissions on usb device

2006-04-03 Thread Roderich Schupp (ext)
I have the same problem (camera device in /dev/bus/usb/... 
accessible only by root), but with libgphoto2 2.1.99-8 from
experimental and udev 0.088-2.

The reason seems to be the second rule (BUS!=usb, ...) in
the generated udev rule file (/etc/udev/libgphoto2.rules).
According to udevinfo, udev doesn't report any BUS setting
for the device, so the other rules are skipped. If I 
remove the above rule, the usb device gets created with 
rw permission for group camera as intended.

Cheers, Roderich



Bug#360526: libgphoto2-2: Fails to properly set permissions on usb device

2006-04-03 Thread Frederic Peters
Roderich Schupp (ext) wrote:

 I have the same problem (camera device in /dev/bus/usb/... 
 accessible only by root), but with libgphoto2 2.1.99-8 from
 experimental and udev 0.088-2.
 
 The reason seems to be the second rule (BUS!=usb, ...) in
 the generated udev rule file (/etc/udev/libgphoto2.rules).
 According to udevinfo, udev doesn't report any BUS setting
 for the device, so the other rules are skipped. If I 
 remove the above rule, the usb device gets created with 
 rw permission for group camera as intended.

Thanks for the debugging; this was supposed to fix #359796 but I'll
remove the BUS line now.



Frederic


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#360526: libgphoto2-2: Fails to properly set permissions on usb device

2006-04-03 Thread Max Gilead
On Mon, 2006-04-03 at 09:46 +0200, Frederic Peters wrote:
  After system update two days ago importing photos from camera stopped
  working as regular user. It works fine when 'gthumb --import-photos' is run
  as root or I run 'chmod -R a+rw /dev/bus/usb/' before trying as regular 
  user.
  
  Output of gthumb is attached below.
 
 Which version of udev are you using ?
Debian package version 0.088-2. Default generated /dev nodes permissions
are: crw-rw-r-- root root.

Max




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#360526: libgphoto2-2: Fails to properly set permissions on usb device

2006-04-02 Thread Max Gilead
Package: libgphoto2-2
Version: 2.1.6-7
Severity: important


While there are numerous bugs filed with problems similar to this one all of
them either are reported for previous versions of kernel/libraries and/or are
not exactly the same. I tried solutions offered in the bug reports (if
available) but nothing I tried worked.

After system update two days ago importing photos from camera stopped
working as regular user. It works fine when 'gthumb --import-photos' is run
as root or I run 'chmod -R a+rw /dev/bus/usb/' before trying as regular user.

Output of gthumb is attached below.

Regards,
Max


$ env LANG=C gphoto2 --debug --summary
0.14 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG
MESSAGES TO THE MAILING LIST:
0.000413 main(2): gphoto2 2.1.6
0.000646 main(2): gphoto2 has been compiled with the following options:
0.000874 main(2):  + gcc (C compiler used)
0.001100 main(2):  + popt (for handling command-line parameters)
0.005892 main(2):  + exif (for displaying EXIF information)
0.006140 main(2):  + no cdk (for accessing configuration options)
0.006394 main(2):  + no aa (for displaying live previews)
0.006622 main(2):  + no jpeg (for displaying live previews in JPEG format)
0.006853 main(2):  + no readline (for easy navigation in the shell)
0.084834 main(2): libgphoto2 2.1.6
0.085081 main(2): libgphoto2 has been compiled with the following options:
0.093254 main(2):  + gcc (C compiler used)
0.093506 main(2):  + EXIF (for special handling of EXIF files)
0.093863 main(2):  + no ltdl (working around buggy libltdl, eh? :-)
0.094095 main(2):  + /proc/meminfo (adapts cache size to memory available)
0.184442 main(2): libgphoto2_port 0.5.1
0.184707 main(2): libgphoto2_port has been compiled with the following
options:
0.184936 main(2):  + gcc (C compiler used)
0.185361 main(2):  + USB (for USB cameras)
0.189913 main(2):  + serial (for serial cameras)
0.190172 main(2):  + no resmgr (serial port access and locking)
0.190403 main(2):  + no baudboy (serial port locking)
0.190635 main(2):  + no ttylock (serial port locking)
0.276267 main(2):  + no lockdev (serial port locking)
0.276600 main(2):  + no ltdl (working around buggy libltdl, eh? :-)
0.24 main(2): The user has not specified both a model and a port. Try to
figure them out.
0.282757 gphoto2-port-info-list(2): Loading io-drivers from
'/usr/lib/gphoto2_port/0.5.1' without ltdl...
0.283505 gphoto2-port-serial(2): Trying to lock '/dev/ttyS0'...
0.382406 gphoto2-port-serial(2): Trying to lock '/dev/ttyS1'...
0.382770 gphoto2-port-serial(2): Trying to lock '/dev/ttyS2'...
0.387965 gphoto2-port-serial(2): Trying to lock '/dev/ttyS3'...
0.388335 gphoto2-port-serial(2): Trying to lock '/dev/ttyS4'...
0.573987 gphoto2-port-serial(2): Trying to lock '/dev/ttyS5'...
0.574256 gphoto2-port-serial(2): Trying to lock '/dev/ttyS6'...
0.574495 gphoto2-port-serial(2): Trying to lock '/dev/ttyS7'...
0.574735 gphoto2-port-serial(2): Trying to lock '/dev/ttyS8'...
0.580203 gphoto2-port-serial(2): Trying to lock '/dev/ttyS9'...
0.788405 gphoto2-port-serial(2): Trying to lock '/dev/ttyS10'...
0.788694 gphoto2-port-serial(2): Trying to lock '/dev/ttyS11'...
0.788934 gphoto2-port-serial(2): Trying to lock '/dev/ttyS12'...
0.789197 gphoto2-port-serial(2): Trying to lock '/dev/ttyS13'...
0.789436 gphoto2-port-serial(2): Trying to lock '/dev/ttyS14'...
0.794871 gphoto2-port-serial(2): Trying to lock '/dev/ttyS15'...
0.983094 gphoto2-port-serial(2): Trying to lock '/dev/ttyS16'...
0.983433 gphoto2-port-serial(2): Trying to lock '/dev/ttyS17'...
0.983673 gphoto2-port-serial(2): Trying to lock '/dev/ttyS18'...
0.983913 gphoto2-port-serial(2): Trying to lock '/dev/ttyS19'...
0.984176 gphoto2-port-serial(2): Trying to lock '/dev/ttyS20'...
1.083388 gphoto2-port-serial(2): Trying to lock '/dev/ttyS21'...
1.083635 gphoto2-port-serial(2): Trying to lock '/dev/ttyS22'...
1.083874 gphoto2-port-serial(2): Trying to lock '/dev/ttyS23'...
1.084131 gphoto2-port-serial(2): Trying to lock '/dev/ttyS24'...
1.089832 gphoto2-port-serial(2): Trying to lock '/dev/ttyS25'...
1.293310 gphoto2-port-serial(2): Trying to lock '/dev/ttyS26'...
1.293558 gphoto2-port-serial(2): Trying to lock '/dev/ttyS27'...
1.293807 gphoto2-port-serial(2): Trying to lock '/dev/ttyS28'...
1.408647 gphoto2-port-serial(2): Trying to lock '/dev/ttyS29'...
1.409067 gphoto2-port-serial(2): Trying to lock '/dev/ttyS30'...
1.409306 gphoto2-port-serial(2): Trying to lock '/dev/ttyS31'...
1.409545 gphoto2-port-serial(2): Trying to lock '/dev/ttyS32'...
1.409839 gphoto2-port-info-list(2): Loaded 'Serial Port 0'
(serial:/dev/ttyS0) from 'libgphoto2_port_serial.so'
1.620565 gphoto2-port-info-list(2): Loaded 'Serial Port 1'
(serial:/dev/ttyS1) from 'libgphoto2_port_serial.so'
1.620826 gphoto2-port-info-list(2): Loaded 'Serial Port 3'
(serial:/dev/ttyS3) from 'libgphoto2_port_serial.so'
1.621082 gphoto2-port-info-list(2): Loaded '' (^serial) from
'libgphoto2_port_serial.so'
1.723550 gphoto2-port-info-list(2): Loaded