Jump to content

using mount --bind with vsftpd

Recommended Posts

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




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








got it ?


thanks to jY in #linux-noob for this tip




Link to post
Share on other sites
  • 8 months later...

anyone know how to unbind a 'bound mount' as in the above examples ?




Link to post
Share on other sites
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...