From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 19:33:42 2004 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 BE74E16A4CE for ; Tue, 21 Dec 2004 19:33:42 +0000 (GMT) Received: from serv03.inetworx.ch (serv03.inetworx.ch [193.17.199.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AD7143D39 for ; Tue, 21 Dec 2004 19:33:40 +0000 (GMT) (envelope-from dev@eth0.ch) Received: from localhost (localhost.localdomain [127.0.0.1]) by serv03.inetworx.ch (Postfix) with ESMTP id 80B99252D66 for ; Tue, 21 Dec 2004 20:33:39 +0100 (CET) Received: from serv03.inetworx.ch ([127.0.0.1]) by localhost (serv03.inetworx.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19538-01 for ; Tue, 21 Dec 2004 20:33:39 +0100 (CET) Received: from www.inetworx.ch (serv04.inetworx.ch [193.17.199.24]) by serv03.inetworx.ch (Postfix) with ESMTP id 30267252D63 for ; Tue, 21 Dec 2004 20:33:39 +0100 (CET) Received: from 217.162.71.141 (SquirrelMail authenticated user dev.eth0); by www.inetworx.ch with HTTP; Tue, 21 Dec 2004 20:33:39 +0100 (CET) Message-ID: <1904.217.162.71.141.1103657619.squirrel@217.162.71.141> In-Reply-To: <1869.217.162.71.141.1103656182.squirrel@217.162.71.141> References: <1706.217.162.71.141.1103648745.squirrel@217.162.71.141> <20041221184957.GB81359@ei.bzerk.org> <1869.217.162.71.141.1103656182.squirrel@217.162.71.141> Date: Tue, 21 Dec 2004 20:33:39 +0100 (CET) From: "David E. Meier" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at inetworx.ch Subject: Re: Problem with chroot, uid's and quota X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 19:33:42 -0000 >>> Somehow the gid's can get mapped to names but the uid's can't. Can >>> anyone >>> point out what I need to adjust or is required to get uid's working >>> with >>> names as well? >> >> In FreeBSD, group names are resolved through /etc/group. Usernames >> however resolve through a user database that is derived from >> /etc/master.passwd. The actual database files are /etc/pwd.db and >> /etc/spwd.db. Try to experiment which of these 3 files are actually >> required by the quota and ls commands to resolve the usernames. > > Thanks you Ruben. That explains why. The only file required is /etc/pw.db. > >> Remember however that putting sensitive information like this inside >> the chroot is a security risk. master.passwd and spwd.db contain the >> (encrypted, but crackable) passwords of all users. > > Is there a way of creating such a file independently and containing only > the chroot user's data? Nevermind, I found out: pwd_mkdb