From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,47c5786dc2552a5c X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,47c5786dc2552a5c X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1995-03-26 01:38:14 PST Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 Path: nntp.gmd.de!dearn!blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be! Belgium.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!utnut!info.physics.utoronto.ca!sysmark From: sysmark@helios.physics.utoronto.ca (Mark Bartelt) Subject: Re: How to get progs working under chroot in OSF1 Message-ID: Nntp-Posting-Host: helios.physics.utoronto.ca Sender: news@info.physics.utoronto.ca (System Administrator) Reply-To: mark@cita.toronto.edu Organization: Canadian Institute for Theoretical Astrophysics Date: Fri, 24 Mar 1995 20:42:24 GMT References: <1995Mar21.195520.4378@cs.sfu.ca> Xref: nntp.gmd.de comp.unix.osf.misc:2476 comp.unix.osf.osf1:8536 [ Ken McDonald ] | I'm trying to get httpd working in a chroot environment and encountering | some problems. As an intermediate task, I'm trying simply to get "ls" | working under chroot, and encountering similar problems. [ Dirk Grunwald ] | I'm having similar problems. I guess the "how do I run XYZ chrooted" Q&A should be in the FAQ. (Perhaps it is already.) Anyway, I tackled this same problem back in November. After all the smoke had cleared, I ended up with the following files in the directory to which the application did the chroot() ... etc/group etc/passwd etc/passwd.dir etc/passwd.pag etc/resolv.conf etc/sia/bsd_matrix.conf etc/sia/matrix.conf -> /etc/sia/bsd_matrix.conf etc/sia/siainitgood etc/svc.conf I'm not certain that all of them are necessary, but the above list does seem to be sufficient. Oh, yeah, be sure that everything in the bin subdirectory (or anything else in your path) is statically linked. Or in other words, if you want to use (for example) "ls", be sure to grab the copy from /sbin and not the one from /usr/bin. (There's likely a way to get dynamically-linked programs to run in the chrooted environment, too, but one would probably have to put even more stuff there, such as the shared objects, and /sbin/loader. Mark Bartelt 416/978-5619 Canadian Institute for mark@cita.toronto.edu Theoretical Astrophysics mark@cita.utoronto.ca "Sheep not busy being shorn are busy frying" - Dylan, at a NZ lamb barbecue [ singing "It's all right, ma (I'm only bleating)" ]