EnderUNIX Team.

EnderUNIX tips

Mail to My Friend , Home Page

[ Linux ]

"How to access outside the chrooted directory" - Mehmet Uluer - (2006-04-10 12:31:51)   [4601]

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

Mail to My Friend , Home Page