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

From: Peter L. Buschman (plb@concentric.net)
Date: Tue Dec 30 1997 - 13:42:42 CST


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



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:12 CDT