Construction and use of vsftp under Linux

Source: Internet
Author: User

Vsftp is a GPL-published UNIX-like system FTP Server software.


Build vsftp server under Linux. The first is to install VSFTPD

Yum Install-y vsftpd

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/55/wKioL1UGpDmSLA59AAGe_VjJZWY189.jpg "title=" Capture 1. PNG "alt=" Wkiol1ugpdmsla59aage_vjjzwy189.jpg "/>

Start Service vsftpd Start

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/55/wKioL1UGpNPR1wP0AABCEcHeZK0574.jpg "title=" Capture 2. PNG "alt=" Wkiol1ugpnpr1wp0aabcechezk0574.jpg "/>

The ftp://IP can now be accessed under win

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/55/wKioL1UGpePzrx3YAAEBl0nMjD8276.jpg "title=" Capture 3. PNG "alt=" Wkiol1ugpepzrx3yaaebl0nmjd8276.jpg "/>


This directory is only allowed to download files under the/etc/var/ftp/pub directory, and does not allow viewing and uploading

You need to modify the Vsftp Master profile/etc/vsftpd/vsftpd.conf

Anonymous_enable=yes Allow Anonymous Logon local_enable=yes allow local users to log on

Write_enable=yes Open Local User Write permission

local_umask=022 Set the mask for local user generated files to 022
#anon_upload_enable =yes This setting allows anonymous users to upload files
#anon_mkdir_write_enable =yes to open the write and create directory permissions for anonymous users
Dirmessage_enable=yes When you switch to a directory, the contents of the. Message hidden file in that directory are displayed
xferlog_enable=yes activating upload and download logs
Connect_from_port_20=yes Enable connection requests for FTP data ports
#chown_uploads Whether =yes has upload permissions. The user is specified by the Chown_username parameter.
#chown_username =whoever Specifies the user who has permission to upload files. This parameter is associated with Chown_uploads.
#xferlog_file =/var/log/vsftpd.log
Xferlog_std_format=yes using the standard ftpd xferlog log format
#idle_session_timeout =600 This setting will be interrupted after the user session has been idle for 10 minutes
#data_connection_timeout =120 will be interrupted after the data connection has been idle for 2 minutes
#ascii_upload_enable =yes enable ASCII transmission of uploads
#ascii_download_enable =yes Enable the download of the ASCII transmission mode
#ftpd_banner =welcome to blah FTP service setting user to display message after connecting to server
#deny_email_enable =no The default value for this parameter is NO. When the value is yes, the user is denied login using the e-mail address listed in the Banned_email_file parameter specified file.
#banned_email_file =/etc/vsftpd.banned_emails Specifies the file containing the denied e-mail address.
#chroot_list_enable =yes Set the local user to log on and cannot switch to a directory other than the home directory
#chroot_list_file =/etc/vsftpd.chroot_list
#ls_recurse_enable =yes
PAM_SERVICE_NAME=VSFTPD Set the profile name of the PAM Authentication Service, which is stored in the/etc/pam.d/
userlist_enable=yes The user specified in this configuration/etc/vsftpd.user_list also cannot access the server, and if Userlist_deny=no is added, only/etc/vsftpd.user_ The user in the list file can access the server and no other user can access it. If userlist_enable=no,userlist_deny=yes, specifies that the user specified in the file/etc/vsftpd.user_list is not able to access the server and that other local users can access the server.
Listen=yes indicates that the VSFTPD is started in a standalone run mode
Tcp_wrappers=yes using the Tcp_wrappers remote access control mechanism in VSFTPD, the default value is YES



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/55/wKioL1UGqYyxV4XIAACI0xxU_fU901.jpg "title=" Capture 4. PNG "alt=" Wkiol1ugqyyxv4xiaaci0xxu_fu901.jpg "/>

Edit, Anonymous account can upload and create new folder in this directory


Anonymous account login is not secure, you can disable anonymous, login with the specified user name

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/57/wKioL1UG2wuBD_UsAAAhUsCSEOQ852.jpg "title=" Capture 5. PNG "alt=" Wkiol1ug2wubd_usaaahuscseoq852.jpg "/>

Set User Login

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/5D/wKiom1UG3FSxaWgHAAA5upxLf8k302.jpg "title=" Capture 6. PNG "alt=" Wkiom1ug3fsxawghaaa5upxlf8k302.jpg "/>


Add a new user to the Linux host virftp for login vsftp

Useradd virftp

passwd virftp


Add virftp users in User_list

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/5D/wKiom1UG3POj9kwMAACuj6UeYF0931.jpg "title=" Capture 7. PNG "alt=" Wkiom1ug3poj9kwmaacuj6ueyf0931.jpg "/>


Once setup is complete, restart the service to use the Virftp login server

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/57/wKioL1UG34_A3Ct_AADTLMQQ-C8804.jpg "title=" Capture 8. PNG "alt=" Wkiol1ug34_a3ct_aadtlmqq-c8804.jpg "/>





This article is from the "Filter New" blog, please be sure to keep this source http://wahehe.blog.51cto.com/8935316/1621259

Construction and use of vsftp under Linux

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.