A Blog about technology, linux, peer2peer, cool new downloads and software development.

Wednesday, February 13, 2008

mount a directory in another directory (ln -s replacement that works inside chroot)

To allow access to other directory/file from apachee/ftp chroot where ln -s dosent work use :

 

mount --bind olddir newdir

 

from mount man :

Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is
              mount --bind olddir newdir
       After this call the same contents is accessible in two places.  One can also remount a single file (on a single file).

7 comments:

Anonymous said...

Thanks - great tip!

rndrfero said...

YES!

Anonymous said...

Thanks a lot, it really helped me

Anonymous said...

great tip, thank you

Anonymous said...

Thanks bro....i really need it for ftp....great help...keep it up..

Anonymous said...

Thanks Man! Really helped.

Anonymous said...

thanks dude