Hi Luis,

On Wed, Nov 15, 2006 at 07:47:11AM +0100, Luis Fernando Llana Díaz wrote:

[...]
> geteuid32()                             = 0
> getuid32()                              = 0
> setresuid32(-1, 0, -1)                  = 0
[...]
> setgroups32(1, [113])                   = 0
> setgid32(113)                           = 0
> setuid32(108)                           = 0
[...]
> write(2, "Checking device (0463/FFFF) (002"..., 38Checking device (0463/FFFF) 
> (002/002)
> ) = 38
> open("/dev/bus/usb/002/002", O_RDWR)    = -1 EACCES (Permission denied)
> open("/dev/bus/usb/002/002", O_RDONLY)  = 4
> ioctl(4, USBDEVFS_CONTROL, 0xaffc2d4c)  = -1 EPERM (Operation not permitted)
> ioctl(4, USBDEVFS_CONTROL, 0xaffc2d4c)  = -1 EPERM (Operation not permitted)
> ioctl(4, USBDEVFS_CONTROL, 0xaffc2d4c)  = -1 EPERM (Operation not permitted)
> write(2, "- VendorID: 0463\n", 17 )      = 17
> write(2, "- ProductID: ffff\n", 18 )     = 18
> write(2, "- Manufacturer: unknown\n", 24 ) = 24
> write(2, "- Product: unknown\n", 19 )    = 19
> write(2, "- Serial Number: unknown\n", 25 ) = 25
> write(2, "- Bus: 002\n", 11- Bus: 002 )            = 11
> write(2, "Trying to match device\n", 23 ) = 23
> write(2, "Device matches\n", 15 )        = 15
> ioctl(4, USBDEVFS_CLAIMINTERFACE, 0xaffc2ee4) = -1 EPERM (Operation not 
> permitted)
> write(2, "failed to claim USB device, trying 2 more time(s)..."..., 53 ) = 53
[...]

What are the permissions on /dev/bus/usb/002/002?  This looks like a simple
permissions problem to me, not a bug in nut-usb; the program changes uids to
a dedicated non-root user, tries to open the device read-write, and gets a
permission denied error.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/

Reply via email to