LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Xsane root permission for Network Scanner (HP-2050) (https://www.linuxquestions.org/questions/linux-newbie-8/xsane-root-permission-for-network-scanner-hp-2050-a-4175514057/)

diablo046 08-09-2014 03:57 AM

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.

bigrigdriver 08-09-2014 11:44 AM

These links might help:
http://marcin.juszkiewicz.com.pl/200...nner-and-udev/
http://pigeonsnest.com/stuff/ubuntu-udev-scanner.html
https://help.ubuntu.com/community/Se...nerPermissions

diablo046 08-11-2014 11:26 PM

thank you

diablo046 09-08-2014 06:51 AM

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.