From owner-freebsd-questions@FreeBSD.ORG Fri Oct 2 22:05:20 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 5C617106568D for ; Fri, 2 Oct 2009 22:05:20 +0000 (UTC) (envelope-from raymond.gibson@verizon.net) Received: from vms173009pub.verizon.net (vms173009pub.verizon.net [206.46.173.9]) by mx1.freebsd.org (Postfix) with ESMTP id 3C4CA8FC08 for ; Fri, 2 Oct 2009 22:05:19 +0000 (UTC) Received: from avatar.gibson.net ([71.252.140.149]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KQW00KXEQOLVW96@vms173009.mailsrvcs.net> for freebsd-questions@freebsd.org; Fri, 02 Oct 2009 17:05:09 -0500 (CDT) From: Raymond Gibson To: Patrick Lamaiziere Date: Fri, 02 Oct 2009 17:05:08 -0500 User-Agent: KMail/1.9.10 References: <200910011533.01028.raymond.gibson@verizon.net> <200910021531.55452.raymond.gibson@verizon.net> <20091002233223.4e957d44@baby-jane.lamaiziere.net> In-reply-to: <20091002233223.4e957d44@baby-jane.lamaiziere.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Content-disposition: inline Message-id: <200910021705.08996.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 22:05:20 -0000 On Friday 02 October 2009 04:32:23 pm Patrick Lamaiziere wrote: > Le Fri, 02 Oct 2009 15:31:55 -0500, > > Raymond Gibson a =E9crit : > > 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. > > > > i tried to set 666 for devfs.rules & devfs.conf in both host and > > jail, but that didn't work. > > > > any more ideas? > > How do you start your jail? For a jail, the devfs rule applied is the > one specified for the jail in /etc/rc.conf, something like > > jail_jailname_devfs_ruleset=3D"devfsrules_jail" # devfs ruleset to > apply to jail > > Regards. i'm using ezjail. ezjail is started from /etc/rc.conf with ezjail_enable=3D"YES". i thought the following would be read into the jail's configuration. /usr/local/etc/ezjail/PrintServer export jail_PrintServer_hostname=3D"PrintServer" export jail_PrintServer_ip=3D"192.168.1.52" export jail_PrintServer_rootdir=3D"/usr/jails/PrintServer" export jail_PrintServer_exec=3D"/bin/sh /etc/rc" export jail_PrintServer_mount_enable=3D"YES" export jail_PrintServer_devfs_enable=3D"YES" export jail_PrintServer_devfs_ruleset=3D"devfsrules_jail_PrintServer" export jail_PrintServer_procfs_enable=3D"YES" export jail_PrintServer_fdescfs_enable=3D"YES" export jail_PrintServer_image=3D"" export jail_PrintServer_imagetype=3D"" export jail_PrintServer_attachparams=3D"" export jail_PrintServer_attachblocking=3D"" export jail_PrintServer_forceblocking=3D"" i put PrintServer_devfs_ruleset=3D"devfsrules_jail_PrintServer" into my rc.= conf=20 and rebooted. no luck, i still get permission denied.