FTP service setup demonstration

Source: Internet
Author: User

Build FTP and test for Local Users

The configuration file of vsfdpd. conf is in/etc/vsfdpd. conf.

1. Use Yum to install vsftpd package on the server client and install Yum to install FTP

2. Open the vsftpd. conf configuration file and modify the two items.
The 12th rows of anonymous users are changed to "no" to be disabled, and the 96th rows are used to enable the local user's home directory lock. In this way, OK,

Because it is an FTP local user service, you need to first create a common user and password to log on to the server using the client ftp to enter the account and password

If yes, it indicates that the building is successful.

If the connection fails, ① check whether the firewall is disabled; ② enter setsebool-P samba_enable_home_dirs 1 on the server to restart the vsftpd service.

③ Open the/etc/SELinux/config configuration file. The security system has disabled SELinux = disabled and restarted. OK

Anonymous Users build FTP and Test

 

The configuration file of vsfdpd. conf is in/etc/vsfdpd. conf.

 

1. Use Yum to install the vsftpd package on the server,

2. After yum is installed, there is a shared directory/var/FTP/pub. If it is not created by yourself

By default, FTP programs can be used. You need to change the/Pub owner to an FTP program user,

3. Open the vsftpd. conf configuration file and modify four items.
In row 3, enable the anonymous user upload permission anon_upload_enable = yes.Manually add an anonymous user's permission maskAnon_umask = 022

Open anon_mkdir_write_enable = yes in row 32nd and manually add other anonymous user permissions anon_other_write_ecable = Yes

4. Start the vsftdpd Service

5. Install Yum on the client to install FTP

5. log on directly from the FTP server IP address. If the anonymous user name is blank, press enter to view the pub shared directory.

6. The HELP command is different from the liunx command. For example, get indicates downloading put indicates uploading)

Virtual user FTP Construction

 

FTP service setup demonstration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.