[Ilugc] printer access from user mode

  • From: mail2ravim@xxxxxxxxx (ravikumar m)
  • Date: Wed Sep 19 11:02:00 2007

On 9/19/07, Girish Venkatachalam <girishvenkatachalam@xxxxxxxxx> wrote:


On Mon, Sep 17, 2007 at 04:05:05PM +0530, ravikumar m wrote:
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'  .

Isn't it obvious?

If you want a normal user to manipulate the device then try adding the
udev rules or manually do a chmod and try.


[ snip ]

Why do you want this?


Thanks for your response.

With chmod, it works but its a temporary solution. if i restart or
re-connect the device , the permissions are again the default one.
I dont have /udev or /sys in my system.  Is udev available in
2.4.21-37.ELkernel.  Do i need to re-install or pl let me know if any
other option.

I need this bcoz i want to read usb device's configuration from the
testfile  and need to open the file in /proc/bus/usb/XXX/YYY as normal user
and not as an root user.

Only  read  permissions are available for the file  /proc/bus/usb/XXX/YYY
to the normal user and i want to have rw permissions.


thanks
ravi





regards,
Girish
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: