[Ilugc] printer access from user mode

  • From: mail2ravim@xxxxxxxxx (ravikumar m)
  • Date: Mon Sep 17 16:05:15 2007

Hi All

I need to test a usb printer from my  user space test code. The test code
could do it well when i am a 'root user' but fails when i login as a 'normal
user'  .

When i do strace , i get the following permission issues:

open("/proc/bus/usb/004/025", O_RDWR)   = -1 EACCES (Permission denied)
open("/proc/bus/usb/004/025", O_RDONLY) = 3

To get the info of the product
ioctl(3, USBDEVFS_CONTROL, 0xbffff1c0)  = -1 EPERM (Operation not permitted)

I am using 2.4.21-37.EL. and 'lsusb' works fine always.

Can anyone please give me some clue on this issue and let me know if any
other details required.

Thanks
Ravi M

Other related posts: