[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /dev/lp0 rights and CUPS



On Tuesday 04 July 2006 03:31, Chris wrote:
> I have added lp to /etc/modules as was suggested in another message to this
> list.  Now I have  /dev/lp0 upon boot, but CUPS (localhost:631) complains:
>
> "Unable to open parallel port device file "/dev/lp0": Permission denied"
>
> here are the versions I have installed.
>
> ii  cupsys         1.2.1-3        Common UNIX Printing System(tm) - server
> ii  udev           0.093-1        /dev/ and hotplug management daemon
>
> and here are the rights I am getting with this setup
>
> crw-rw---- 1 root lp 6, 0 2006-07-03 18:10 /dev/lp0
>
> why, oh why, can't udev and CUPS get along?   And how do I get udev to set
> the rights of /dev/lp0 to lp:lp which according to another posting is
> necessary to get let cupsd see it (it works if I manually do it)?
>


In /etc/udev/local.rules, I have the line:

BUS=="usb", KERNEL=="lp[0-9]*", OWNER="lp"

which makes sure the ownership of /dev/usb/lp0 is right for my usb printer. 
(The group is automatically taken care of in permissions.rules - but 
strangely not the owner.)

I find I also have to use an old /etc/cups/cupsd.conf file if I want to print 
as a user (from KDE at least) - I'm in the process of trying to work out why.

HTH,

John



Reply to: