getpwnam() not working in chroot() shell in Solaris 2.6

Thanks to everyone who replied.

The original question was:

I'm working on creating a securied chroot() shell environment under

Solaris 2.6. So far, I have all my /bin, /lib, /etc, /dev directories created,

and I have minimal functionality of a shell. However, 'ls -l' and any other

programs that need to use the getpw() family of calls, don't work. I've copied

/etc/passwd, /etc/shadow, and /etc/nsswitch.conf to the chrooted /etc

directory, but it still doesn't work.

Anybody know what I'm missing?

The almost unanimous answer was to read the 'ftpd' manpage, which lists

all required libraries and devices, and even includes a script to generate

the directory tree for you.

--PLB

[717 byte] By [CodeProf.com] at [2007-12-25 12:00:00]