From owner-freebsd-security Wed Feb 5 9:16:19 2003 Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A49E137B405 for ; Wed, 5 Feb 2003 09:16:18 -0800 (PST) Received: from dmz2.unixjunkie.com (adsl-65-70-175-249.dsl.rcsntx.swbell.net [65.70.175.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C4B743F93 for ; Wed, 5 Feb 2003 09:16:12 -0800 (PST) (envelope-from strgout@unixjunkie.com) Received: from mail.unixjunkie.com (mail [10.253.254.36]) by dmz2.unixjunkie.com (8.12.6/8.12.6) with ESMTP id h15HPNeA058327 for ; Wed, 5 Feb 2003 11:25:23 -0600 (CST) (envelope-from strgout@mail.unixjunkie.com) Received: from mail.unixjunkie.com (mail [10.253.254.36]) by mail.unixjunkie.com (8.12.6/8.12.6) with ESMTP id h15HPMZC058324 for ; Wed, 5 Feb 2003 11:25:22 -0600 (CST) (envelope-from strgout@mail.unixjunkie.com) Received: (from strgout@localhost) by mail.unixjunkie.com (8.12.6/8.12.6/Submit) id h15HPMwb058323 for freebsd-security@freebsd.org; Wed, 5 Feb 2003 11:25:22 -0600 (CST) (envelope-from strgout) Date: Wed, 5 Feb 2003 11:25:21 -0600 From: John To: freebsd-security@freebsd.org Subject: Re: Passwords in Jails Message-ID: <20030205172521.GA58302@mail.unixjunkie.com> References: <200302050843.30377.ahuth@lanworks.de> <5.2.0.9.0.20030205075601.061cefe0@192.168.0.12> <20030205160058.GB373@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030205160058.GB373@straylight.oblivion.bg> User-Agent: Mutt/1.4i Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Just as a side note pw is a great util for managing jails. You can add/del/mod and all that jazz, just add -V /path/to/jail/etc You can also set passwords via pw (-h). On Wed, Feb 05, 2003 at 06:00:58PM +0200, Peter Pentchev wrote: > On Wed, Feb 05, 2003 at 07:57:17AM -0500, Mike Tancsa wrote: > > At 08:43 AM 2/5/2003 +0100, Alex Huth wrote: > > >Where can I solve this problem or is there a possibility to manage > > >passwords/public keys of a jail from the basesystem? > > > > Yes, just manipulate the master.passwd file directly from outside your > > jail, > > Of course, this had better be done using 'vipw -d /path/to/jail/etc/' :) > > > or cp your public key to the appropriate authorized_keys2 file, as > > you have access to the entire file system from the base system. > > This has always worked for me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message