Questions: How to install Vsftpd on Ubuntu 12.04 or Mint 13 ?
Answer :
1- Start with installing vsftp
sudo apt-get install vsftpd
2- Edit the config file
sudo vi /etc/vsftpd.conf
The vsftpd.conf file contains a large number of configuratrions arguments . If you want people with local user accounts on the FTP server to be able to connect via FTP (you usually do), you will need to change this directive:
local_enable=YES write_enable=YES anonymous_enable=NO
Save and exit
3- Restart vsftpd
sudo service vsftpd restart
If you want to give writing rights to users for some extra directories . You need to set chmod a+w /directory
Live example
# ftp 10.0.2.15 Connected to 10.0.2.15. 220 (vsFTPd 2.3.5) Name (10.0.2.15:pirat9): 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Desktop drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Documents drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Downloads drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Music drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Pictures drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Public drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Templates drwxr-xr-x 2 1000 1000 4096 May 24 21:54 Videos 226 Directory send OK. ftp>