Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use vsftpd to build FTP Services in Ubuntu14.04

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how Ubuntu14.04 uses vsftpd to build FTP services". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how Ubuntu14.04 uses vsftpd to build FTP services".

We often need to upload local files to a remote Ubuntu 14.04 server, or download files from a remote Ubuntu 14.04 server locally, so we need to use vsftpd to build FTP services. Now let's introduce how to install and configure vsftpd on Ubuntu 14.04.

1. Update the source list

Open the Terminal window, enter "sudo apt-get update"-- > enter-- > enter the administrator password of the currently logged-in user "--> enter, and enter is fine. If you do not run the command, install vsftpd directly, there will be "several packages cannot be downloaded, you can run apt-get update-" error message, resulting in unable to install.

2. Install vsftpd

Open the Terminal window and type "sudo apt-get install vsftpd"-- > enter-- > installation complete.

3. Judge whether vsftpd is installed successfully.

Open the "Terminal window" and type "sudo service vsftpd restart" to restart the vsftpd service-- > enter-- > vsftpd is running, indicating that the installation is successful.

4. Create a new "/ home/uftp" directory as the user's home directory

Open the Terminal window and enter "sudo mkdir / home/uftp"-- > enter-- > enter "sudo ls / home"-- > enter-- > there is a uftp directory, and the directory has been created successfully.

5. Create a new user uftp and set the password

Open the "terminal window" and enter "sudo useradd-d / home/uftp-s / bin/bash uftp"-- > enter-- > user created successfully-- > enter "sudo passwd uftp" to set the password for uftp users-- > enter-- > enter twice-- > enter-- > password set successfully.

6. Use gedit to modify the configuration file / etc/vsftpd.conf

Open the Terminal window, type "sudo gedit / etc/vsftpd.conf"-- > enter-- > Open the vsftpd.conf file, and add "userlist_deny=NO" to the file.

Userlist_enable=YES userlist_file=/etc/allowed_users "and" seccomp_sandbox=NO "--> make" local_enable=YES "--> save in the file.

7. Create a new / etc/allowed_users file using gedit

Open the Terminal window, enter "sudo gedit / etc/allowed_users"-- > enter-- > enter uftp-- > Save, and the file is created successfully.

8. Use gedit to view the contents of / etc/ftpusers file

Open the Terminal window, type "sudo gedit / etc/ftpusers"-- > enter-- > after opening this file, see if there is a uftp user name. If not, exit directly. Delete uftp if any, because this file records a list of users who cannot access the FTP server.

9. Log in to the FTP server using winscp

To download and install WinSCP, run WinSCP-- > enter IP, user name, password-- > Save-- > check "Save password"-- > OK-- > Login-- > Login successfully.

Note: those who are accustomed to modifying configuration files using the vi editor can also use vi, not necessarily gedit.

Thank you for reading, the above is the content of "how Ubuntu14.04 uses vsftpd to build FTP services". After the study of this article, I believe you have a deeper understanding of how Ubuntu14.04 uses vsftpd to build FTP services, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report