From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 02:53:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DEA3106564A for ; Wed, 23 Apr 2008 02:53:11 +0000 (UTC) (envelope-from davidrjr@comcast.net) Received: from QMTA07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) by mx1.freebsd.org (Postfix) with ESMTP id 85A208FC26 for ; Wed, 23 Apr 2008 02:53:10 +0000 (UTC) (envelope-from davidrjr@comcast.net) Received: from OMTA04.westchester.pa.mail.comcast.net ([76.96.62.35]) by QMTA07.westchester.pa.mail.comcast.net with comcast id Gqd01Z0040ldTLk5701j00; Wed, 23 Apr 2008 02:51:32 +0000 Received: from [192.168.1.100] ([67.184.16.41]) by OMTA04.westchester.pa.mail.comcast.net with comcast id Gqt21Z00A0t9eDP3Q00000; Wed, 23 Apr 2008 02:53:03 +0000 X-Authority-Analysis: v=1.0 c=1 a=WBwyhSR3OD0A:10 a=uhE1l3tZRUwA:10 a=fYVeVOKgTOkuCRiXqOgA:9 a=Ejgj-Nmo6L2Ub02cERYA:7 a=_yH0aR1oXCwUkeQahf1i5em05hcA:4 a=LY0hPdMaydYA:10 From: David Reedy Jr To: Roland Smith Date: Tue, 22 Apr 2008 21:53:01 -0500 User-Agent: KMail/1.9.7 References: <200804211305.56895.davidrjr@comcast.net> <200804221008.37489.davidrjr@comcast.net> <20080422154025.GC36675@slackbox.xs4all.nl> In-Reply-To: <20080422154025.GC36675@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200804222153.01743.davidrjr@comcast.net> Cc: FreeBSD-questions@freebsd.org Subject: Re: Unable to open device file "/dev/lpt0": Permission denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 02:53:11 -0000 On Tuesday 22 April 2008 10:40:25 am Roland Smith wrote: > On Tue, Apr 22, 2008 at 10:08:37AM -0500, David Reedy Jr wrote: > > > IICR, the print device should belong to the cups group. At least, > > > that's my working setup. > > > > > > I have the following in /etc/devfs.conf: > > > > > > # Give cups printer access > > > own lpt0 root:cups > > > perm lpt0 0660 > > > > Thanks for the info. This didn't actually fix the problem, but I > > know it was needed since I read somewhere that everything that > > cupsd spawns runs as cups. > > > > What I ended up doing was resetting my cupsd.conf to default and > > redid my settings. I must have had a typo in there somewhere before > > because as soon as I restarted cupsd after making the changes, the > > parallel and usb ports suddenly became available as devices for the > > printer. > > It happens. :-) > > > I had previously selected lpd and then manually specified the uri > > as parallel:/dev/lpt0. > > > > The laser on the parallel port is now working fine. > > Good. > > > I also went ahead > > and setup my deskjet on usb:/dev/ulpt0. Print test pages get marked > > as completed but nothing actually comes out of the printer. Still > > trying to figure that one out. > > Have a look at the cups logfiles in /var/log/cups. They should give > you some pointers. You'll probably need to set the device permissions > for ulpt in devfs.rules, not devfs.conf! > I got the rules setup in devfs.rules, no problem. When I turn on the=20 printer it's detected... ulpt0: on uhub0 ulpt0: using bi-directional mode and things get set right permission-wise... crw-rw---- 1 root cups 0, 88 Apr 22 21:20 /dev/ulpt0 according to /var/log/cups/error_log it prints... I [22/Apr/2008:21:20:03 -0500]=20 Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=3D756) I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding start banner page "none". I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding job file of type=20 application/postscript. I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding end banner page "none". I [22/Apr/2008:21:20:03 -0500] [Job 47] Queued on "inkjet" by "root". I [22/Apr/2008:21:20:03 -0500] [Job 47] Started=20 filter /usr/local/libexec/cups/filter/pstops (PID 757) I [22/Apr/2008:21:20:03 -0500] [Job 47] Started=20 filter /usr/local/libexec/cups/filter/pstoraster (PID 758) I [22/Apr/2008:21:20:03 -0500] [Job 47] Started=20 filter /usr/local/libexec/cups/filter/rastertohp (PID 759) I [22/Apr/2008:21:20:03 -0500] [Job 47] Started=20 backend /usr/local/libexec/cups/backend/usb (PID 760) I [22/Apr/2008:21:20:06 -0500]=20 Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=3D761) I [22/Apr/2008:21:20:06 -0500] [Job 47] Completed successfully. I [22/Apr/2008:21:20:17 -0500]=20 Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=3D762) but the job disappears into some sort of black hole. Nothing prints.=20 Printer just sits there peacefully doing nothing. =46rom printers.conf for this printer... Info HP DeskJet 3845 Location Bottom DeviceURI usb:/dev/ulpt0 State Idle StateTime 1208917161 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 AllowUser root AllowUser davidrjr OpPolicy default ErrorPolicy stop-printer If anybody has additional insight, I'd sure appreciate it. Dave > Roland