Http://jingyan.baidu.com/article/67508eb4d6c4fd9ccb1ce470.html
Installation and configuration of Ubuntu 14.04 FTP server--vsftpd
We often need to upload local files to the remote Ubuntu 14.04 Server, or the remote Ubuntu 14.04 server to download files locally, which requires the use of VSFTPD to build the FTP service, now introduce how the Ubuntu 14.04 Installing and configuring the VSFTPD
Tools/Materials
- Ubuntu 14.04
- WinSCP 5.5.4
Method/Step
- 1
Update Source list
Open "Terminal Window", enter "sudo apt-get update"-and "Enter the administrator password of the currently logged-in user"--return, it is OK. If you do not run the command and install VSFTPD directly, a "few packages cannot be downloaded, you can run the Apt-get update------" error message, which causes the installation to fail.
- 2
Installing VSFTPD
Open "Terminal window" and enter "sudo apt-get install vsftpd"------the installation is complete.
- 3
Determine if the VSFTPD is installed successfully
Open terminal window, enter "sudo service vsftpd restart" to restart the VSFTPD service, and enter-->VSFTPD is running, indicating that the installation was successful.
- 4
Create a new "/home/uftp" directory as the user home directory
Open "Terminal Window", enter "sudo mkdir/home/uftp"--enter "sudo ls/home"--and have a uftp directory, directory new success.
- 5
Create a new user uftp and set a password
Open "Terminal Window", enter "sudo useradd-d/home/uftp-s/bin/bash uftp"--Return the user new success--enter "sudo passwd uftp" setting uftp user's password-- > enter your password two times--and the password is set successfully.
- 6
Modify the configuration file using Gedit/etc/vsftpd.conf
Open the terminal window, enter "sudogedit/etc/vsftpd.conf", and carriage return-opens the vsftpd.conf file and adds "Userlist_deny=no" to the file.
Userlist_enable=yes userlist_file=/etc/allowed_users "and" Seccomp_sandbox=no "-so that" Local_enable=yes "in the file is saved.
- 7
Create a new/etc/allowed_users file using Gedit
Open "Terminal Window", enter "sudo gedit/etc/allowed_users"-and enter uftp--> save, the file is created successfully.
- 8
Use Gedit to view content in a/etc/ftpusers file
Open "Terminal Window", enter "sudo gedit/etc/ftpusers"--Return to open this file, see if there is no uftp this username, if not, just exit. If any, delete uftp, because this file is logged in the user list that cannot access the FTP server.
- 9
Log on to an FTP server using WINSCP
Download Install WINSCP, run winscp--> input IP, user name, password--Save password and tick "save Passwords"--------Log on successfully.
END
Installation and configuration of Ubuntu 14.04 FTP server--vsftpd