Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* How to get progs working under chroot in OSF1
@ 1995-03-21 19:55 Ken Mcdonald
  1995-03-22 23:37 ` Dirk Grunwald
  1995-03-23 22:18 ` David King
  0 siblings, 2 replies; 5+ messages in thread
From: Ken Mcdonald @ 1995-03-21 19:55 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1995-03-24 20:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1995-03-23 22:18 ` David King

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