Actually the idea of this post comes from My friend kulbir saini .But his post much implied configuring on fedora.so thought of to make lyf easier 4 Ubuntu users…To start off with Vsftpd stands for very Secure FTP Daemon.Before configuring vsftpd itself, you must decide whether to run it as a standalone dæmon or by way of a super-server, inetd or xinetd. In previous versions of vsftpd, its developer recommended using it with xinetd due to xinetd’s logging and access-control features. However, vsftpd versions 1.2 and later have native support for most of those features. For this reason, I recommend u to run it as a standalone daemon.Now to install vsftpd just type:
and ur done with….
Now its time to configure ur vsftpd.conf file present in etc directory.actually default configuration is a little bit paranoid.so we have to tweak with it…u can use my vsftpd.conf available here…Don’t forget to backup before you use my configuration.
sudo cp /etc/vsftpd.conf /etc/vsftpd_backup
Now make a writable directory for anonymous user.
cd /home/ftp
sudo mkdir uploads sudo chmod 777 uploads
With this configuration I can log into ftp server with anonymous user ( without username and password ). After logging in, the anonymous user jailed in /home/ftp directory ( pointed by anon_root ). I can’t go outside. I can download files from /home/ftp directory but not create, delete anything from this directory. But I can write and delete files in uploads.If I write files in uploads or upload files in uploads, the files automatically belong to ‘kranny’ user.
To run this server:
sudo /etc/init.d/vsftpd start
To stop it:
sudo /etc/init.d/vsftpd stop
To restart it:
sudo /etc/init.d/vsftpd restart
you can mount your required folders to the ftp directory with a mount -bind command…..but each time the system restarts you should do the same thing again n again…Instead run my bind.sh evrytime u restart ur computer…
PS 1:Time is 1.00 am n 4m 1 hr mom is shouting 4m the back to shutdown the sys.I thk shez cmg 2 break it …
PS 2: The look of ftp listing in firefox 3 beta 2 is really awesome….u can chk it out here