Re: A jail with a dash in its name

2010-12-22 Thread Leon Meßner
On Tue, Dec 21, 2010 at 11:31:42PM +0100, Christer Solskogen wrote: > On Tue, Dec 21, 2010 at 9:26 PM, Matthew Seaman > wrote: > > > Of course, there's no problem with using the form 'forest-friend' on the > > RHS of any assignments, so long as it's properly quoted, of course. > > > > Thanks for

Re: A jail with a dash in its name

2010-12-21 Thread Christer Solskogen
On Tue, Dec 21, 2010 at 9:26 PM, Matthew Seaman wrote: > Of course, there's no problem with using the form 'forest-friend' on the > RHS of any assignments, so long as it's properly quoted, of course. > Thanks for all your help! I chose to remove all hyphens instead. -- chs

Re: A jail with a dash in its name

2010-12-21 Thread Matthew Seaman
On 21/12/2010 12:11, Robert Bonomi wrote: >> I want to create a jail called forest-friend. And having a dash in the >> > name seems to create problems for me. >> > >> > /etc/rc.conf: jail_forest-friend_rootdir=/usr/jails/forest-friend: not >> > found >> > >> > how do I escape that? You don't. rc

Re: A jail with a dash in its name

2010-12-21 Thread Ivan Voras
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

Re: A jail with a dash in its name

2010-12-21 Thread krad
On 21 December 2010 13:21, Christer Solskogen wrote: > On Tue, Dec 21, 2010 at 1:54 PM, Da Rock > wrote: > > > However, whether or not a hyphen is allowed in the jail name is another > > matter. Yes a hyphen is allowed in a hostname, but in the rc.conf the > > hostname is set in a string (as ment

Re: A jail with a dash in its name

2010-12-21 Thread Christer Solskogen
On Tue, Dec 21, 2010 at 1:54 PM, Da Rock wrote: > However, whether or not a hyphen is allowed in the jail name is another > matter. Yes a hyphen is allowed in a hostname, but in the rc.conf the > hostname is set in a string (as mentioned before). Also, the jail name and > hostname don't need to b

Re: A jail with a dash in its name

2010-12-21 Thread Da Rock
On 12/21/10 22:48, Christer Solskogen wrote: On Tue, Dec 21, 2010 at 1:11 PM, Robert Bonomi wrote: That statement appears to be a shell variable assignment, yet the error message indicates that the system is trying to find an executable by the name of the entire expression. You need to sho

Re: A jail with a dash in its name

2010-12-21 Thread Christer Solskogen
On Tue, Dec 21, 2010 at 1:11 PM, Robert Bonomi wrote: > That statement appears to be a shell variable assignment, yet the > error message indicates that the system is trying to find an executable > by the name of the entire expression. > > You need to show us the actual line in /etc/rc.conf _and_

Re: A jail with a dash in its name

2010-12-21 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Tue Dec 21 04:58:59 2010 > Date: Tue, 21 Dec 2010 11:58:38 +0100 > From: Christer Solskogen > To: FreeBSD Mailing List > Subject: A jail with a dash in its name > > I want to create a jail called forest-friend. And having a dash i

Re: A jail with a dash in its name

2010-12-21 Thread Christer Solskogen
On Tue, Dec 21, 2010 at 12:28 PM, Chris Rees wrote: > You tried single quotes? > How? Where? :-) jail_'forest-friend'_rootdir=/usr/jails/forest-friend also gives "/etc/rc.conf: jail_forest-friend_rootdir=/usr/jails/forest-friend: not found" -- chs,

Re: A jail with a dash in its name

2010-12-21 Thread Chris Rees
On 21 December 2010 11: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

Re: A jail with a dash in its name

2010-12-21 Thread Christer Solskogen
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? -- chs,

Re: A jail with a dash in its name

2010-12-21 Thread krad
On 21 December 2010 10:58, Christer Solskogen wrote: > I want to create a jail called forest-friend. And having a dash in the > name seems to create problems for me. > > /etc/rc.conf: jail_forest-friend_rootdir=/usr/jails/forest-friend: not > found > > how do I escape that? > > -- > chs, > ___

A jail with a dash in its name

2010-12-21 Thread Christer Solskogen
I want to create a jail called forest-friend. And having a dash in the name seems to create problems for me. /etc/rc.conf: jail_forest-friend_rootdir=/usr/jails/forest-friend: not found how do I escape that? -- chs, ___ freebsd-questions@freebsd.org m