lkml.org 
[lkml]   [1996]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: chroot bug, & Re: Ideas for v2.1
Date
Elliot Lee (sopwith@redhat.com) wrote:
: If, however, I 'cd /; chroot /www /bin/bash', when bash starts up, it is
: in the _REAL_ root directory, and I can look at files and such in this
: directory with ls, etc... To make it go to the changed root, I must do a
: 'cd /' under the chroot shell...
:
: Hope someone can make sense of this ;-)
This is the normal behaviour, since chroot(2) doesnt change the CWD, and
chroot(8) doesnt do it eighter. Well, I guess it should be mentioned in the
man-page.

Greetings
Bernd
--
(OO) -- Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de --
( .. ) ecki@lina.{inka.de,ka.sub.org} http://home.pages.de/~eckes/
o--o *plush* 2048/93600EFD eckes@irc +4972573817 *plush*
(O____O) If privacy is outlawed only Outlaws have privacy


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.077 / U:1.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site