Install and configure the FTP server in Centos5.6

Source: Internet
Author: User
Tags ftp access
Install and configure the FTP server in Centos5.6. check whether the FTP server has been installed: rpm-qa | grepvsftpd2. check that the FTP server version that can be installed is yumsearchvsftpd3. install the FTP server yuminstallvsftpd. i3864 .... install and configure the FTP server in Centos 5.6. check whether the FTP server has been installed: rpm-qa | grep vsftpd2. check that the FTP server version that can be installed is yum search vsftpd3. install FTP server: yum install vsftpd. i3864. view the FTP server status: service vsftpd status5. start the FTP server: service vsftpd start6. view and explain vsftpd. conf configuration file: www.2cto.com # anonymous user anonymous logon anonymous_enable = YES # Allow local users to log on to local_enable = YES # grant the logged-on users the write permission (upload, delete) write_enable = YES # default umasklocal_umask = 022 www.2cto.com # save the transfer record log to/var/log/vsftpd. logxferlog_enable = YESxferlog_file =/var/log/vsftpd. logxferlog_std_format = NO # Allow Upload in ASCII mode = YES # allow download in ASCII mode ascii_download_enable = YES # use Port 20 to transmit data connect_from_port_20 = YES # Welcome message ftpd_banner = Welcome to use my ftp test server. # The next three configurations are very important # set chroot_local_user If YES is set, all users will be restricted to their home directory by chroot by default, and the Directory cannot be changed up # chroot_list_enable is set to YES, make the chroot user list valid. #★Super important: if YES is set for chroot_local_user, the files set for chroot_list_file are not chroot users (you can change the directory up )#★Super important: if NO is set for chroot_local_user, the file set for chroot_list_file is the user of chroot (the directory cannot be changed up) chroot_local_user = YESchroot_list_enable = YESchroot_list_file =/etc/vsftpd/chroot_list # run listen = YES # PAM authentication service name on ipv4 in standalone mode. the default value is vsftpd, you have created this pam file when installing vsftpd, # in/etc/pam. d/vsftpd. according to the settings in this pam file, users in the/etc/vsftpd/ftpusers # file are prohibited from logging on to the ftp server, such as sensitive users such as root, therefore, you can also append a user to/etc/vsftpd/ftpusers to prevent other users from logging on. Www.2cto.com pam_service_name = vsftpd # userlist_enable = YES. the user access control list is valid. the file is/etc/vsftpd/user_list # userlist_deny = YES, users in/etc/vsftpd/user_list cannot log on. # userlist_deny = NO. only users in/etc/vsftpd/user_list can log on #★Important: no matter how it is set here, it only further limits users, but overwrites the effect of/etc/vsftpd/ftpusers # above. For example, if the/etc/vsftpd/ftpusers has a root user, even if you set # userlist_deny = NO and/etc/vsftpd/user_list has a root user, the root user cannot log on! Userlist_enable = YESuserlist_deny = YES #/etc/hosts is allowed. allow and/etc/hosts. deny file to restrict ftp access control tcp_wrappers = YES # PASV mode configuration pasv_enable = YES # PASV mode connection minimum port pasv_min_port = 60000 # PASV mode connection maximum Port pasvanderbilt max_port = 60500
Related Article

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.