From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 18:47: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 CB33C16A4CE for ; Tue, 21 Dec 2004 18:47:42 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id D232E43D46 for ; Tue, 21 Dec 2004 18:47:41 +0000 (GMT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.1/8.13.1) with ESMTP id iBLInvF3081588; Tue, 21 Dec 2004 19:49:57 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.1/8.13.1/Submit) id iBLInv3g081587; Tue, 21 Dec 2004 19:49:57 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Tue, 21 Dec 2004 19:49:57 +0100 From: Ruben de Groot To: "David E. Meier" Message-ID: <20041221184957.GB81359@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , "David E. Meier" , freebsd-questions@freebsd.org References: <1706.217.162.71.141.1103648745.squirrel@217.162.71.141> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1706.217.162.71.141.1103648745.squirrel@217.162.71.141> User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-1.7 required=5.0 tests=ALL_TRUSTED, FROM_ENDS_IN_NUMS,J_CHICKENPOX_66 autolearn=failed version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on ei.bzerk.org cc: freebsd-questions@freebsd.org 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 18:47:42 -0000 On Tue, Dec 21, 2004 at 06:05:45PM +0100, David E. Meier typed: ... > 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. 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. Ruben