Date: Tue, 21 Dec 2004 19:49:57 +0100 From: Ruben de Groot <mail25@bzerk.org> To: "David E. Meier" <dev@eth0.ch> Cc: freebsd-questions@freebsd.org Subject: Re: Problem with chroot, uid's and quota Message-ID: <20041221184957.GB81359@ei.bzerk.org> In-Reply-To: <1706.217.162.71.141.1103648745.squirrel@217.162.71.141> References: <1706.217.162.71.141.1103648745.squirrel@217.162.71.141>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041221184957.GB81359>