Date: Fri, 27 Jan 2012 12:06:48 -0800 From: Matt Mullins <mokomull@gmail.com> To: "Philip M. Gollucci" <pgollucci@gmail.com> Cc: Daniel Shafaf <danielsh@apache.org>, current@freebsd.org, Scott Sanders <Ssanders@taximagic.com> Subject: Re: jid and jname are numberic by default why? Can we change it ? Message-ID: <CAPyT1SE_YQdk0GcweKfEfNHwehJzHqvYpM3fRCYNdoOZD=kP8A@mail.gmail.com> In-Reply-To: <4F22D9FD.10502@p6m7g8.com> References: <4F22D9FD.10502@p6m7g8.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 27, 2012 at 9:08 AM, Philip M. Gollucci <pgollucci@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyT1SE_YQdk0GcweKfEfNHwehJzHqvYpM3fRCYNdoOZD=kP8A>