From owner-freebsd-questions@FreeBSD.ORG Tue Apr 22 15:09:21 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 9783E106564A for ; Tue, 22 Apr 2008 15:09:21 +0000 (UTC) (envelope-from davidrjr@comcast.net) Received: from QMTA10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) by mx1.freebsd.org (Postfix) with ESMTP id 2CF128FC2D for ; Tue, 22 Apr 2008 15:09:21 +0000 (UTC) (envelope-from davidrjr@comcast.net) Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA10.westchester.pa.mail.comcast.net with comcast id GbzA1Z00H1HzFnQ5A0C400; Tue, 22 Apr 2008 15:08:08 +0000 Received: from [192.168.1.100] ([67.184.16.41]) by OMTA14.westchester.pa.mail.comcast.net with comcast id Gf8e1Z0010t9eDP3a00000; Tue, 22 Apr 2008 15:08:39 +0000 X-Authority-Analysis: v=1.0 c=1 a=WBwyhSR3OD0A:10 a=uhE1l3tZRUwA:10 a=WYr7WHU_xQFI4dUpp7QA:9 a=fy9CBKB2wZ7dv533L7UA:7 a=ZqwrDDcyhcF9GBGPfDwKf5nlj9kA:4 a=LY0hPdMaydYA:10 From: David Reedy Jr To: Roland Smith Date: Tue, 22 Apr 2008 10:08:37 -0500 User-Agent: KMail/1.9.7 References: <200804211305.56895.davidrjr@comcast.net> <20080421195416.GA6884@slackbox.xs4all.nl> In-Reply-To: <20080421195416.GA6884@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804221008.37489.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: Tue, 22 Apr 2008 15:09:21 -0000 On Monday 21 April 2008 2:54:16 pm Roland Smith wrote: > On Mon, Apr 21, 2008 at 01:05:56PM -0500, David Reedy Jr wrote: > > Small home network. Trying to get cups working on my server. > > > > FreeBSD 7.0-RELEASE #4: Tue Apr 15 11:01:37 CDT 2008 > > root@omega.myhome.net:/usr/obj/usr/src/sys/OMEGA > > ... > > ppc0: at port 0x378-0x37f irq 7 on isa0 > > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > > ppc0: FIFO with 16/16/9 bytes threshold > > ppbus0: on ppc0 > > ppbus0: [ITHREAD] > > ppbus0: IEEE1284 device found /NIBBLE > > Probing for PnP devices on ppbus0: > > ppbus0: PRINTER HP > > ENHANCED PCL5,PJL > > > > > StateMessage Unable to open device file "/dev/lpt0": Permission > > denied > > > > > Trying to print a test page from the cups web interface on a client > > machine, I get the error message. Doing chmod 777 /dev/lpt0 does > > not change anything. > > > > Can somebody tell me what I've done wrong or point me in the > > direction I should be looking? > > 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. 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. 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. > > If you don't want to reboot; > # chown root:cups /dev/lpt0 > # chmod 0660 /dev/lpt0 > > Roland