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