From owner-freebsd-questions@FreeBSD.ORG Fri Oct 2 20:32:24 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 CAADF10656AA for ; Fri, 2 Oct 2009 20:32:24 +0000 (UTC) (envelope-from raymond.gibson@verizon.net) Received: from vms173015pub.verizon.net (vms173015pub.verizon.net [206.46.173.15]) by mx1.freebsd.org (Postfix) with ESMTP id ABDC08FC19 for ; Fri, 2 Oct 2009 20:32:24 +0000 (UTC) Received: from avatar.gibson.net ([71.252.140.149]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KQW00BTLMD735I4@vms173015.mailsrvcs.net> for freebsd-questions@freebsd.org; Fri, 02 Oct 2009 15:31:55 -0500 (CDT) From: Raymond Gibson To: Bernt Hansson Date: Fri, 02 Oct 2009 15:31:55 -0500 User-Agent: KMail/1.9.10 References: <200910011533.01028.raymond.gibson@verizon.net> <4AC5AC3A.7050009@bah.homeip.net> In-reply-to: <4AC5AC3A.7050009@bah.homeip.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline Message-id: <200910021531.55452.raymond.gibson@verizon.net> Cc: freebsd-questions@freebsd.org Subject: Re: 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: Fri, 02 Oct 2009 20:32:24 -0000 On Friday 02 October 2009 02:31:06 am Bernt Hansson wrote: > Raymond Gibson said the following on 2009-10-01 22:33: > > 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 > > install. I added ezjail and created two jails. Both jails are working and > > I can login to both using ssh. > > > > 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=10] > > 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 > > Something doesn't seem right with you devfs.rules file. > Mine looks like this: > > [system=10] > add path 'unlpt*' mode 0660 group cups > add path 'ulpt*' mode 0660 group cups > add path 'lpt*' mode 0660 group cups > > > After a reboot, I can access the administration website. > > I added a printer and allowed remote access. > > > >>From 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 > > > > > > Wen printing a test page from administration page i get permission > > denied. HPPhotosmart7350 (Default Printer) "Unable to open device file > > "/dev/ulpt0": 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. > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" I changed /etc/devfs.rules, but no luck. i change permissions on /dev/ulpt0 (in the jail) and now i can print a test page from Cups administration page. PrintServer# ls -l /dev | grep ulpt0 crw-r--r-- 1 root operator 0, 79 Oct 2 10:51 ulpt0 PrintServer# chmod 666 /dev/ulpt0 PrintServer# ls -l /dev | grep ulpt0 crw-rw-rw- 1 root operator 0, 79 Oct 2 10:51 ulpt0 i tried to set 666 for devfs.rules & devfs.conf in both host and jail, but that didn't work. any more ideas?