LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   udev rules to automatically apply 666 permission (https://www.linuxquestions.org/questions/linux-newbie-8/udev-rules-to-automatically-apply-666-permission-799730/)

linuxmandrake 04-03-2010 02:09 AM

udev rules to automatically apply 666 permission
 
Hi on my linux box the device node for my printer is by default setup as the following:
crw-rw---- 1 root lp 189, 1 Apr 3 07:45 /dev/bus/usb/001/002

This causes cups to not print at all. The Hp backend (HPLIP) fails because of these permissions. How do I change it so that it's
crw-rw--rw 1 root lp 189, 1 Apr 3 07:45 /dev/bus/usb/001/002. Ie I would like 666 file permission on that node.

I'm not familiar with udev so a step by step instructions would be greatly appreciated.

walu 04-03-2010 02:24 AM

did you try to run this command as a root:

# chmod 666 /dev/bus/usb/001/002 ?

linuxmandrake 04-03-2010 03:31 AM

yes thanks for the suggestion but that isn't permanent. The udev files get removed after the device is unpluged or switched off. Actually Hp drivers had a file called 55-hpmud.rules. I just changed the mode to be 666 instead of 660. That was painless lol.
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??11", OWNER="root", GROUP="lp", MODE="666"


All times are GMT -5. The time now is 06:27 AM.