From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 15:31:51 2010 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 A27AD1065673 for ; Tue, 21 Dec 2010 15:31:51 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 55EDA8FC12 for ; Tue, 21 Dec 2010 15:31:51 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PV4Bq-0007NT-1t for freebsd-questions@freebsd.org; Tue, 21 Dec 2010 16:31:50 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 16:31:50 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 16:31:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Tue, 21 Dec 2010 16:31:38 +0100 Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: X-Enigmail-Version: 1.1.2 Subject: Re: A jail with a dash in its name 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: Tue, 21 Dec 2010 15:31:51 -0000 On 21/12/2010 12:23, Christer Solskogen wrote: > On Tue, Dec 21, 2010 at 12:06 PM, krad wrote: >> i'd stay away from characters like that. It should be ok in theory to use >> but in my experience it is more likely to cause problems in the future >> > > There's no problem of having a dash in a hostname, so why should it be > in a jailname? Well, the immediate reason here is this: http://www.gnu.org/software/bash/manual/bashref.html#Definitions """ name A word consisting solely of letters, numbers, and underscores, and beginning with a letter or underscore. Names are used as shell variable and function names. Also referred to as an identifier. """ (ignoring that /bin/sh is not bash but the syntax is the same for this purpose). /etc/rc.conf is basically a shell script containing only variable assignments. I think you actually *could* have jails with arbitrary names (including international / utf-8 if you're not worried about formatting much) but only if you are going to manage them manually, not with /etc/rc.conf.