Problem with chroot, uid's and quota

David E. Meier dev at eth0.ch
Tue Dec 21 11:09:44 PST 2004


>> 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?



More information about the freebsd-questions mailing list