Xsane root permission for Network Scanner (HP-2050)
Hi all,
I have configured a usb scanner (HP-2050) as Network Scanner for our company.I have installed sane server in a normal centos machine and make it as scan-server. I can print(Cups server) from any machine in our Network.But for scan , I have to set permission in server manually that is # chmod 777 /dev/bus/usb/002/*. After that I can scan from any computer. Everytime the scanner connects with my server its ports changes randomly i.e /dev/bus/usb/002/003 or 004(it changes). Is there any way to make this stop(by changing udev rules or something),so that if we connect the scanner, I don't have to manually change the permission (chmod 777 /dev/bus/usb/002/*) everytime.My OS is Centos 6.5.kindly help. |
|
thank you
|
Today I found the solution. I have created a file name 88-scanner.rules in /etc/udev/rules.d and add the following lines
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="8711", MODE="0777" The device idVendor and idProduct is shown in lsusb command.And now its working properly. |
All times are GMT -5. The time now is 08:49 PM. |