Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: sysmark@helios.physics.utoronto.ca (Mark Bartelt)
Subject: Re: How to get progs working under chroot in OSF1
Date: Fri, 24 Mar 1995 20:42:24 GMT	[thread overview]
Message-ID: <D5ypIp.BFG@info.physics.utoronto.ca> (raw)
In-Reply-To: GRUNWALD.95Mar22163727@foobar.cs.colorado.edu

[ 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)" ]


  parent reply	other threads:[~1995-03-24 20:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-21 19:55 How to get progs working under chroot in OSF1 Ken Mcdonald
1995-03-22 23:37 ` Dirk Grunwald
1995-03-23 18:09   ` Peter da Silva
1995-03-24 20:42   ` Mark Bartelt [this message]
1995-03-23 22:18 ` David King
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox