FTP Service built under Linux

Source: Internet
Author: User

If not downloaded, use the yum command to download

Then modify the configuration file

#/etc/vsftpd/vsftpd.conf
Add the following information
#设定不允许匿名访问anonymous_enable =no# to set local user access. Note: If you are using a virtual hosting user, all virtual users will not be able to access the local_enable=yes# when the item is set to No, users cannot leave the home directory chroot_list_enable=yes# set the ASCII mode upload and download feature _upload_enable=yesascii_download_enable=yes#pam Authentication file name. Pam will authenticate according to/ETC/PAM.D/VSFTPD pam_service_name=vsftpd# set enable virtual user function guest_enable=yes# The host user of the specified virtual user, There is already a built-in FTP user in CentOS guest_username=ftp# set the path of the CentOS FTP service file for the virtual user's personal vsftp. The CentOS FTP service file (config file name = Virtual user name) that holds the virtual user's personality user_config_dir=/etc/vsftpd/vuser_conf

Then generate the virtual user authentication file

# db_load-t-T hash-f/etc/vsftpd/vuser_passwd.txt/etc/vsftpd/vuser_passwd.db

First see if the Linux version is 32-bit or 64-bit.

Then edit the authentication file

Auth required/lib64/security/pam_userdb.so Db=/etc/vsftpd/vuser_passwdaccount REQUIRED/LIB64/SECURITY/PAM_ Userdb.so db=/etc/vsftpd/vuser_passwd

Then create a virtual user personalized service file

# mkdir/etc/vsftpd/vuser_conf/

# Touch/etc/vsftpd/vuser_conf/test

Then

# Vi/etc/vsftpd/vuser_conf/test Add the following information

Then create FTP root permissions

# mkdir-p/ftp/www

# Chmod-r 777/ftp

# Chmod-r 777/ftp/www

Then restart Iptables and VSFTPD.

FTP Service built 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.