From owner-freebsd-current@FreeBSD.ORG Fri Jan 27 20:36:21 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7970106564A for ; Fri, 27 Jan 2012 20:36:21 +0000 (UTC) (envelope-from mokomull@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6D9288FC0C for ; Fri, 27 Jan 2012 20:36:21 +0000 (UTC) Received: by werm13 with SMTP id m13so69751wer.13 for ; Fri, 27 Jan 2012 12:36:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7A1U/AMo+lLku2WWtf30OIMfH4iPDoETACT9FZXW9P0=; b=kBw9E3WQcRS6mOP/kXeYRsG/exASbSK5o4xUO5gUf6HhhGd9i4GO1lsndTuCpHZp/o 7rKhgaXo2RXS/G7Qwue/z4w1sVCTLISpFWyWHGpAqYP55ctvmmQsFsxsPNPMsEcwOVaE 2jTEoySV5SYVpD9/GgQDi46q9s8Zd/1fnspuE= MIME-Version: 1.0 Received: by 10.216.131.210 with SMTP id m60mr3438678wei.47.1327694808746; Fri, 27 Jan 2012 12:06:48 -0800 (PST) Received: by 10.223.106.141 with HTTP; Fri, 27 Jan 2012 12:06:48 -0800 (PST) In-Reply-To: <4F22D9FD.10502@p6m7g8.com> References: <4F22D9FD.10502@p6m7g8.com> Date: Fri, 27 Jan 2012 12:06:48 -0800 Message-ID: From: Matt Mullins To: "Philip M. Gollucci" Content-Type: text/plain; charset=ISO-8859-1 Cc: Daniel Shafaf , current@freebsd.org, Scott Sanders Subject: Re: jid and jname are numberic by default why? Can we change it ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2012 20:36:21 -0000 On Fri, Jan 27, 2012 at 9:08 AM, Philip M. Gollucci wrote: > All, > > $ jls -nq | tail -1 | xargs -n1 | egrep '^(name|jid)='| xargs > jid=17 name=17 > > # jubilee/chef > jail_jubilee_hostname="jubilee.dca1.rws" > jail_jubilee_ip="192.168.2.41" > jail_jubilee_ip_multi0="192.168.2.42" > jail_jubilee_interface="bge1" > jail_jubilee_rootdir="/jubilee" > jail_jubilee_devfs_enable="YES" The default flags that /etc/rc.d/jail passes to jail(8) are "-l -U root". Failing to give jail(8) a name results in name==jid, as you found above. You can make the rc script name the jail by setting: jail_jubilee_flags="-n jubilee -l -U root" Notice the rc script uses the second form of syntax listed in jail(8), at least on 9.0-RELEASE. -- Matt Mullins