Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using mount --bind with vsftpd
#1

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

 



Code:
[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

Reply


Messages In This Thread
using mount --bind with vsftpd - by anyweb - 2006-12-01, 12:26 PM
using mount --bind with vsftpd - by anyweb - 2007-08-12, 09:22 PM
using mount --bind with vsftpd - by xDamox - 2007-08-13, 12:44 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)