Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mcdonald@cs.sfu.ca (Ken Mcdonald)
Subject: How to get progs working under chroot in OSF1
Date: Tue, 21 Mar 1995 19:55:20 GMT	[thread overview]
Message-ID: <1995Mar21.195520.4378@cs.sfu.ca> (raw)

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. In a nutshell,
here is the setup.

a copy of ls is in the directory /chdir. Also in this directory are
copies of the directories leading to, and the files, /usr/shlib/libc.so,
/etc/group, /etc/passwd, /dev/zero, and probably a few others as well.
So, for example, the file /chdir/usr/shlib/libc.so is a copy of the
file /usr/shlib/libc.so.  According to "odump -Dl", libc.so is the
only shared library ls depends on.  However, executing

	chroot /chdir /ls

gives the message "/ls not found". Executing the same command, but with
a command other than ls which does not make use of shared libraries
(eg. chroot /chdir /hostid, with a copy of hostid in chdir) does work.
Clearly, ls is missing something.  However, I have no idea what it is
missing, nor how to find out.  (On a sun, this process was quite a bit
easier--I would try to execute chroot, and it would tell me, "oh, I can't
find file such-and-such".  The error messages on the DEC are a little
more cryptic :-) )

Oh, yes, as the last line implies, I'm doing this on a Dec Alpha.
It's not my normal environment, so please feel free to point out even
really obvious points.


Thanks,
Ken McDonald
mcdonald@cs.sfu.ca


             reply	other threads:[~1995-03-21 19:55 UTC|newest]

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