This article will build a simple FTP service, that is, through the root user can log on, upload, download, the following steps:
1. Installation VSFTPD Service
sudo Install vsftpd
2. Edit the VSFTP configuration file
vi /etc/vsftpd.conf local_enable=Yes #打开这一行, allow local user to log in write_enable=Yes # Open this line, configure FTP writable pam_service_name=ftp #因为ubuntu启用了PAM, this line to change to FTP
3. Restart Service
Service VSFTPD Restart
4. Testing
D:\>FTP 106.0.*.*connected to106.0.*.*. -(vsFTPd2.3.5) Users (106.0.*.*:(None): Root331Please specify the password. Password: theLogin successful.FTP>dir $PORT Command successful. Consider using PASV. MaxHere comes the directory listing.-rw-r--r--1 0 0 TenOct - Ten:Panax Notoginseng 1. txt-RW-------1 0 0 TenOct - Ten: the 2. txt226Directory send OK.FTP: Received126Bytes, spents0.00 seconds126.0 Bytes/seconds. FTP> Get1. txt $PORT Command successful. Consider using PASV. MaxOpening BINARY Mode data connection for 1txtTenbytes).226Transfer complete.FTP: ReceivedTenBytes, spents0.00 seconds10000.0 Bytes/seconds. FTP> Put2. txt $PORT Command successful. Consider using PASV. MaxOk to send data.226Transfer complete.FTP: SendTenBytes, spents0.01 seconds1.11,000 Bytes/seconds. FTP>
ubunt1204 Installation Configuration Vsftp