From owner-freebsd-questions@FreeBSD.ORG Sat Oct 3 08:10:49 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 1E6261065679 for ; Sat, 3 Oct 2009 08:10:48 +0000 (UTC) (envelope-from bernt@bah.homeip.net) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id 0B62B8FC0A for ; Sat, 3 Oct 2009 08:10:44 +0000 (UTC) Received: from kw.homeip.net (c80-217-70-227.bredband.comhem.se [80.217.70.227]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id n938Aa8K071164; Sat, 3 Oct 2009 10:10:39 +0200 (CEST) (envelope-from bernt@bah.homeip.net) Message-ID: <4AC706F7.3030106@bah.homeip.net> Date: Sat, 03 Oct 2009 10:10:31 +0200 From: Bernt Hansson User-Agent: slrn/1.0.8 (FreeBSD) MIME-Version: 1.0 To: Raymond Gibson References: <200910011533.01028.raymond.gibson@verizon.net> <4AC5AC3A.7050009@bah.homeip.net> <200910021531.55452.raymond.gibson@verizon.net> In-Reply-To: <200910021531.55452.raymond.gibson@verizon.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 03 Oct 2009 08:10:49 -0000 Raymond Gibson said the following on 2009-10-02 22:31: >> 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 >> > > 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? I don't have an usb printer attached. ls -l /dev/lp* crw-rw---- 1 root cups 0, 38 Sep 23 18:27 /dev/lpt0 crw-rw---- 1 root cups 0, 39 Sep 19 22:30 /dev/lpt0.ctl That's on the print server, no jail, and I think you do not need to change the devfs.conf file. Mine isn't changed looks like this: # Historically X depended on this, but version 4.3.0 doesn't seem to anymore #link ttyv0 vga # Commonly used by many ports #link acd0 cdrom # Allow a user in the wheel group to query the smb0 device #perm smb0 0660 # Allow members of group operator to cat things to the speaker #own speaker root:operator #perm speaker 0660