Bug 99745 - print/cups: CUPS 1.2.0_x: Unable to open parallel port device file "/dev/lpt0": Permission denied
Summary: print/cups: CUPS 1.2.0_x: Unable to open parallel port device file "/dev/lpt0...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ion-Mihai "IOnut" Tetcu
Depends on:
Reported: 2006-07-03 13:40 UTC by Osamu Hasegawa
Modified: 2006-08-06 10:16 UTC (History)
0 users

See Also:

cups-base.diff (37.10 KB, patch)
2006-07-04 11:54 UTC, Sergey Akifyev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Osamu Hasegawa 2006-07-03 13:40:04 UTC
CUPS 1.2.0 with parallel port printer has a same issue as ports/99460.

/usr/local/etc/cups/printers.conf is as follows.

<DefaultPrinter MJ-800C>
Info MJ-800C
DeviceURI parallel:/dev/lpt0
State Idle
StateTime 1151906919
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer

The following error is found in /var/log/cups/error_log.
"Unable to open parallel port device file "/dev/lpt0": Permission denied"


Similar to ports/99460 ports/99624/.

Add following lines to /etc/devfs.rules:

add path 'lpt*' mode 0660 group cups

And following to /etc/rc.conf:

Comment 1 Edwin Groothuis freebsd_committer 2006-07-03 13:41:10 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Ion-Mihai "IOnut" Tetcu freebsd_committer 2006-07-03 14:59:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->itetcu

I'll take it.
Comment 3 Sergey Akifyev 2006-07-04 11:54:27 UTC
On ÐÎ, 2006-07-03 at 12:41 +0000, Edwin Groothuis wrote:
> Maintainer of print/cups,
> Please note that PR ports/99745 has just been submitted.
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.

Attached .diff file is based on ports/99624.
Thanks to it's author Marcin Wisnicki .

Pr's 99624, 99707 and this can be closed.

> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/99745
Sergey Akifyev
AGAVA Software Ltd <http://agava.com>
PGP key available from:
Comment 4 Ion-Mihai "IOnut" Tetcu freebsd_committer 2006-07-07 21:27:31 UTC
State Changed
From-To: feedback->patched

Should be fixed by patch in ports/99624
Comment 5 Ion-Mihai "IOnut" Tetcu freebsd_committer 2006-08-06 10:16:26 UTC
State Changed
From-To: patched->closed

Update to 1.2.2 and many fixes commiter. If problems perssist please 
open a new PR. Thanks for your effort.