From owner-freebsd-questions@FreeBSD.ORG Mon Feb 21 11:47:20 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B26D116A4CE for ; Mon, 21 Feb 2005 11:47:20 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ACED43D1D for ; Mon, 21 Feb 2005 11:47:20 +0000 (GMT) (envelope-from bassers@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so262567rnf for ; Mon, 21 Feb 2005 03:47:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=bzV/ksIka2mYdhPe+dNTRvS3WGIj3rw6r6Vpd+tYUOCVzPsGmBEdquuvpOxjT5eYX1aSMjQvQyTREfzeXhNlWu1tfj+ka7LZW+zSo+i5ToYCC/g7PAMxmAbyb/f9RBFrvPDLwX42PjRu9IKIb90+kFbbjlpEdbCLde2QBXBd3e8= Received: by 10.39.3.39 with SMTP id f39mr33537rni; Mon, 21 Feb 2005 03:47:19 -0800 (PST) Received: by 10.38.70.59 with HTTP; Mon, 21 Feb 2005 03:47:19 -0800 (PST) Message-ID: <503e8b580502210347261d75f6@mail.gmail.com> Date: Mon, 21 Feb 2005 12:47:19 +0100 From: Bas Essers To: freebsd-questions@freebsd.org In-Reply-To: <20050221104446.GA45694@webmail.home.brasapen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1108980962.9422.47.camel@localhost.localdomain> <1108981883.9422.55.camel@localhost.localdomain> <20050221104446.GA45694@webmail.home.brasapen.org> Subject: Re: server name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Bas Essers List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 11:47:20 -0000 maybe i get this wrong, but do you just want to change the name that appears in your shell prompt? you can make up anything you want for that, but you have to consult the manpage for your shell. On Mon, 21 Feb 2005 11:44:47 +0100, Eilko Bos wrote: > Hi, > > >From the keyboard of michael Christie, written on Mon, Feb 21, 2005 at 09:31:23PM +1100: > > I see what you mean, that may not help me as my host name is an ip > > address running in a jail. There for my host name at the command prompt > > is 192# if I change the ip to a name in the /etc/rc.conf I do not > > think the jail will run. > > A hostname is not an IP-address. > For a jail, the hostname is given in the commandline. You should change that > for in case you have to restart the jail. Also, you should update /etc/hosts > and /etc/rc.conf to refect the changes. This might be needed for e.g. running > services like Apache and MySQL. > > Keep in mind, from man(8) jail: > > NOTE: If you plan to allow untrusted users to have root access inside the > jail, you may wish to consider setting the > security.jail.set_hostname_allowed sysctl variable to 0. Please see the > management discussion later in this document as to why this may be a good > idea. If you do decide to set this variable, it must be set before > starting any jails, and once each boot. > > Grtz, > -- > Eilko. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Met vriendelijke groet, Bas Essers