From owner-freebsd-questions@FreeBSD.ORG Thu Oct 1 21:33:48 2009 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 A59AA1065679 for ; Thu, 1 Oct 2009 21:33:48 +0000 (UTC) (envelope-from raymond.gibson@verizon.net) Received: from vms173013pub.verizon.net (vms173013pub.verizon.net [206.46.173.13]) by mx1.freebsd.org (Postfix) with ESMTP id 89E968FC12 for ; Thu, 1 Oct 2009 21:33:48 +0000 (UTC) Received: from avatar.gibson.net ([71.97.56.214]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KQU00AV8RR1XVS0@vms173013.mailsrvcs.net> for freebsd-questions@freebsd.org; Thu, 01 Oct 2009 15:33:01 -0500 (CDT) From: Raymond Gibson To: freebsd-questions@freebsd.org Date: Thu, 01 Oct 2009 15:33:00 -0500 User-Agent: KMail/1.9.10 MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable Content-disposition: inline Message-id: <200910011533.01028.raymond.gibson@verizon.net> Subject: jail - unable to print from inside jail 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: Thu, 01 Oct 2009 21:33:48 -0000 I'm trying to setup CUPS (in a jail) using a USB printer on my host machine. My host was built with as a minimal FreeBSD 7.2-Release=20 install. I added ezjail and created two jails. Both jails are working and I= =20 can login to both using ssh. I'm trying to build one of the jails as a print server. I added the followi= ng=20 to it: cups-1.3.10_1 hpijs-2.1.4_3 libijs-0.35_1 foomatic-db-20090530 foomatic-filters-4.0.1_2 On the host i did the following: I added this to /etc/devfs.conf own ultp0 root:cups perm ultp0 0660 I added this to /etc/devfs.rules # Printers add path ltp[0-9]* mode 0660 group cups add path ultp[0-9]* mode 0660 group cups add path unltp[0-9]* mode 0660 group cups [devfsrules_jail_PrintServer=3D10] add path ltp[0-9]* mode 0660 group cups add path ultp[0-9]* mode 0660 group cups add path unltp[0-9]* mode 0660 group cups I added cups:*:193:root, to /etc/group After a reboot, I can access the administration website. I added a printer and allowed remote access.=20 =46rom administration page - printer status: Description: HP Photosmart 7350 Location: Home Printer Driver: HP PhotoSmart 7350 Foomatic/hpijs (recommended) Printer State: idle, accepting jobs, published. Device URI: usb:/dev/ulpt0=20 Wen printing a test page from administration page i get permission denied. HPPhotosmart7350 (Default Printer) "Unable to open device file "/dev/ulpt0"= :=20 Permission denied" How do i solve this? Please let me know if more information is needed. I thank you for your time and help in advance.