2014年12月2日 星期二

Linux vsftpd變更預設目錄作法

As we know by default vsftpd will configure the anonymous directory to /var/ftp/pub which is great to share files with users 

After trying a lot of different configurations this is what worked for me:


Code:
mkdir /home/pub
mv /var/ftp/pub/* /home/pub/
rm -rf /var/ftp/pub
mount --bind /home/pub/ /var/ftp/pub/
I have a feeling that vsftpd does not lets you browse symlinks but will work with mounted filesystems (bind method).