2009/08/26

How to access outside the chrooted directory

Symbolic links do not work when pointing outside the default root (chrooted location) directory. To get around this limitation, it is possible to remount directories into chrooted location. One can
also remount a single file (on a single file).

as of the 2.4.0 kernel:
# mount --bind olddir newdir

also putting this line into /etc/fstab makes it permanent.
/my/old/dir /my/new/dir none bind 0 0

No comments:

Post a Comment