On Fri, Oct 05, 2001 at 02:51:46PM +0000, Marco Tassinari wrote: > >> in a chroot environment with a local passwd and shadow and group files, > >> I cannot use users. Eg, in the chrooted bash, 'ls -l' returns 0 0 for > >> root.root files, 8.8 for mail.mail files... so my chrooted copy of > >> sendmail freezes. It seems that the local passwd isn't there... > >It seems that ls doesn't use pam. (see ldd, and also experiments show this.) > >For me ls shows numbers, when /etc/passwd|group files are not > >present. Are you sure your copies are at the right place? (no > >symlinks of course) > > Mhhh... > let's try: > > # chroot /var/users/ > # ls -la /etc > > drwxr-xr-x 3 0 0 4096 Oct 5 14:44 . > drwxr-xr-x 10 0 0 4096 Oct 5 14:37 .. > -rw-r--r-- 1 0 8 33 Oct 2 13:24 group > drwxr-sr-x 3 8 8 4096 Oct 2 13:07 mail > -rw-r--r-- 1 0 8 230 Oct 3 15:52 passwd > -rw-r----- 1 0 0 207 Oct 5 14:29 shadow > > # cat /etc/passwd > > root::0:0:root:/root:/bin/bash > mail::8:8:mail:/var/spool/mail:/bin/bash > pippo::100:100::/home/pippo:/bin/bash ls requires /lib/libnss_files.so.2 in order to map uid/gids to symbolic names. -- Ethan Benson http://www.alaska.net/~erbenson/
Attachment:
pgpb5L8gvcYD0.pgp
Description: PGP signature