anyweb 490 Posted December 1, 2006 Share Posted December 1, 2006 if you've ever setup vsftpd and noticed that when you login it defaults the user to their home directory eg: user anyweb will ftp in to /home/anyweb/ then how can you let that user access another folder outside of their home ? using bind ! here's a quick example [root@www anyweb]# mkdir ftp2 [root@www anyweb]# mount --bind /ftp2 /home/anyweb/ftp2 [root@www anyweb]# mkdir ftp3 [root@www anyweb]# mount --bind /ftp3 /home/anyweb/ftp3 now when you ftp in, you'll see the contents of /home/anyweb PLUS ther'll also be two additional folders called ftp2 and ftp3 and anything you dump in there or read from there comes directly from the 'real' directories /ftp2 and /ftp3 got it ? thanks to jY in #linux-noob for this tip cheers anyweb Quote Link to post Share on other sites
anyweb 490 Posted August 12, 2007 Author Share Posted August 12, 2007 anyone know how to unbind a 'bound mount' as in the above examples ? cheers anyweb Quote Link to post Share on other sites
xDamox 10 Posted August 13, 2007 Share Posted August 13, 2007 Hi anyweb, just issue the following: umount /home/anyweb/ftp2 That should work Quote Link to post Share on other sites
Recommended Posts