Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Sep 2006 14:17:28 -0400
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        freebsd-questions@freebsd.org
Cc:        Robert Huff <roberthuff@rcn.com>
Subject:   Re: cups 1.2.2 and parallel port printers
Message-ID:  <1157653048.36687.8.camel@zappa.Chelsea-Ct.Org>
In-Reply-To: <20060907170628.8E30116A537@hub.freebsd.org>
References:  <20060907170628.8E30116A537@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Sep 2006 08:42:11 -0400, Robert Huff <roberthuff@rcn.com>
wrote:

> rance@frontiernet.net writes:
> 
> >  anybody seen this behavior before? or have a clue?
> 
>         I don't know if this is your problem, but I have seen similar
> issues.
>         _In my case_, CUPS as ported does not like the permissions on
> /dev/lpt0*.  They default to "crw-------"; setting them to
> "crw-rw-rw-" makes the parallel printer appear.
>         There should be a way to tall devfs to change those
> permissions
> automatically, but I haven't been able to figure it out.
> 
> 
> 
>                                         Robert Huff

I have this in my /etc/devfs.rules file on a system successfully using
CUPS with a parallel port printer:


[localrules=10]
add path 'lpt*' mode 0660 group cups


(I also have 'devfs_system_ruleset="localrules"' in my /etc/rc.conf
file.)

That makes sure that CUPS can access the lpt* devices (including the
lpt*.ctl devices).  Mode 0660 also ensures that not everyone can access
lpt*, just root and members of the cups group (i.e., CUPS).

Cheers,

Paul.
-- 
e-mail: paul@gromit.dlib.vt.edu

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
        --- Frank Vincent Zappa



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1157653048.36687.8.camel>