From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 00:23:30 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 7063B106564A for ; Mon, 23 Feb 2009 00:23:30 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from fmailhost01.isp.att.net (fmailhost01.isp.att.net [204.127.217.101]) by mx1.freebsd.org (Postfix) with ESMTP id 5C5698FC08 for ; Mon, 23 Feb 2009 00:23:30 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from [10.5.21.122] (adsl-146-137-154.bna.bellsouth.net[70.146.137.154]) by isp.att.net (frfwmhc01) with ESMTP id <20090223002329H01003rvdee>; Mon, 23 Feb 2009 00:23:29 +0000 X-Originating-IP: [70.146.137.154] Message-ID: <49A1EC64.3000703@datapipe.com> Date: Sun, 22 Feb 2009 18:23:00 -0600 From: Paul Procacci User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: "Jasvinder S. Bahra" References: <9F3E5C98058140F697CA8A46F31C6A4D@atlantis> In-Reply-To: <9F3E5C98058140F697CA8A46F31C6A4D@atlantis> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Accessing /dev/lpt0 in a 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: Mon, 23 Feb 2009 00:23:30 -0000 Jasvinder S. Bahra wrote: > Hi, > > I'm trying to setup CUPS (in a jail) using an old parallel port > printer on my server machine. > > I used ezjail to create a jail and then installed CUPS. I've got it > up and running, and I can access the administration website. > > However, as far as I can tell, the admin website doesn't seem to offer > any options regarding the parallel port. Following some research, I > believe I somehow needs to create a /dev/lpt0 entry, *in* the jail. > > Now, that entry exists on the jail's host system, but theres a limited > list of entries in the jail's /dev directory. If I do a "ls -al /dev" > (less quotes) in the jail, I get the following... > > [root@pearl cups]# ls -al /dev > total 0 > dr-xr-xr-x 2 root wheel 512 Feb 22 19:04 fd > lrwxr-xr-x 1 root wheel 14 Feb 22 19:04 log -> ../var/run/log > crw-rw-rw- 1 root wheel 0, 16 Feb 22 19:22 null > crw-rw-rw- 1 root wheel 0, 122 Feb 22 19:28 ptyp0 > crw-rw-rw- 1 root wheel 0, 8 Feb 22 19:04 random > lrwxr-xr-x 1 root wheel 4 Feb 22 19:04 stderr -> fd/2 > lrwxr-xr-x 1 root wheel 4 Feb 22 19:04 stdin -> fd/0 > lrwxr-xr-x 1 root wheel 4 Feb 22 19:04 stdout -> fd/1 > crw--w---- 1 jazz tty 0, 123 Feb 22 19:28 ttyp0 > lrwxr-xr-x 1 root wheel 6 Feb 22 19:04 urandom -> random > crw-rw-rw- 1 root wheel 0, 17 Feb 22 19:04 zero > > Does anyone know how I go about providing the jail with a link to lpt0? > > Thanks, > > Jazz > > > > _______________________________________________ > 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've never used ezjail, as I usually setup jails myself. With that said, access to dev entries within jail are/can be controlled by devfs rules. The configuration for your rules is "administrator dependant". More specifically, you should find a line in your rc.conf that looks similar to the following: jail_devfs_ruleset="devfsrules_jail" This defines the ruleset used for your jails. Knowing this, you can now edit your rules file (/etc/devfs.rules) and add appropriate entries for your printer and associated devices. ~Paul