From owner-freebsd-jail@FreeBSD.ORG Wed May 4 09:27:43 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8315A106566C for ; Wed, 4 May 2011 09:27:43 +0000 (UTC) (envelope-from uffe@uffe.org) Received: from mail.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with SMTP id BADEE8FC0C for ; Wed, 4 May 2011 09:27:42 +0000 (UTC) Received: (qmail 19063 invoked by uid 1004); 3 May 2011 21:08:08 -0000 FCC: imap://uffe%40starion.info@mail.starion.dk/Sent X-Identity-Key: id4 Message-ID: <4DC06E87.3030109@uffe.org> Date: Tue, 03 May 2011 23:07:19 +0200 From: Uffe Jakobsen X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-jail@freebsd.org References: <20110326190947.19ff58f9@r500.local> In-Reply-To: <20110326190947.19ff58f9@r500.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: jexec by jname X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 09:27:43 -0000 On 2011-03-26 19:09, Fabian Keil wrote: > Subbsd wrote: > >> I see wrong information at http://wiki.freebsd.org/Jails >> "jexec - selection by jail name, 2008-05-26 commited to 8-CURRENT" >> >> I do not see something like "jexec -n" in RELENG_8 or >> CURRENT. This is fake ;) ? > > Quoting jexec(8): > > | DESCRIPTION > | The jexec utility executes command inside the jail identified by its jid > | or name. > > The -n option is still there, but silently ignored. > > Note, however, that the jail name jexec(8) is talking > about is not the same as the host name. > > By default the jail id is used as jail name: > > fk@r500 ~ $jls -n name jid > name=1 jid=1 > name=2 jid=2 > name=3 jid=3 > > So while jexec allows you to use the jail "name", it seems > to lack the "accept hostname or ip-number" feature mentioned > in the wiki, unless a non default jail name is used. > > Fabian FYI: I've submitted a patch that would enable configurable jail_names from the (rc.d) rc.conf But it is still pending: http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/150599 /Uffe