9fans archive / 1997 / 05 / 24 / prev next From: Brandon Black photon@nol.net Subject: The future of Plan9? Date: Mon, 5 May 1997 09:02:21 -0500 (CDT) I can confirm that this is the correct approach for chroot-ing a network service under Solaris. See Sun's paper on setting up anonymous FTP under Solaris (or was it a paper by a third party? Its a paper by someone.. :) They explicitly state that for anonymous ftp to work if it chroot()'s to ftp's home directory, you must have certain files from the root filesystem copied into the chroot() environment, including many, but not all, of what you list below. What you have down there, also, will only support UDP, which I assume is fine for u9fs... you have to get /dev/tcp and the related streams devices, etc.. to support tcp (which anon ftp needed). Brandon On Sun, 4 May 1997, Markus Friedl wrote: > > file system directly" approach? And I haven't made u9fs work with chroot() > > on the Solaris machine. To boot over the net I belive I need the chroot(). > > in order to make u9fs+chroot work under Solaris, I had to copy some > files to the chroot-tree: (i did a strace and filtered the 'open' system > calls, I'm not sure if you need all files) > > /dev/zero > /dev/ticotsord > /dev/udp > /etc/passwd > /etc/nsswitch.conf > /etc/netconfig > /usr/lib/nss_compat.so.1 > /usr/lib/nss_nis.so.1 > /usr/lib/libnsl.so.1 > /usr/lib/libintl.so.1 > /usr/lib/libmp.so.1 > /usr/lib/libw.so.1 > /usr/lib/libsocket.so.1 > /usr/lib/straddr.so > > you need chroot unless you want to mix the plan9 & the solaris > file tree. > > -markus > /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* * Brandon Lee Black * SysAdmin/Developer * * F+E Applications Dept * WorldCom, Inc. * *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* * Office * 281.362.6466 * * Voice Mail * 800.362.1141 x6466 * * Electronic Mail * photon@nol.net * * * photon@gnu... * * * vis_blb@unx... * * * brandon.black@wco... * *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* * Numeric Page * 800.940.9797 x7012263 * * Alpha Page (Operator) * 800.940.9595 x7012263 * * Alpha Page (E-mail) * 7012263@mob... * *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/