Enable FTP service in centos

Source: Internet
Author: User

# Chkconfig vsftpd on // automatically start the vsftpd service upon startup
#/Etc/init. d/vsftpd start // enable the vsftpd service
# Vi/etc/vsftpd. conf // edit the vsftp configuration file
Find the following and disable it:
Anonymous_enable = No // disable anonymous user login
Add another row:
Local_enable = Yes // enable local user login

Create a user:
# Adduser-D/var/FTP/test-g ftp-S/sbin/nologin Test
# Passwd Test

Iptables firewall settings:
# System-config-securitylevel
Select FTP in the customization.

 

 


#/Etc/init. d/iptables restart // restart iptables

After modifying iptables, you can access FTP, but the user cannot log on because SELinux needs to be disabled.
# Vi/etc/sysconfig/SELinux
Find:
SELinux = enforcing
To:
SELinux = disabled

# Reboot // restart the computer

// If the data cannot be written after login, modify the directory permission again:
# Chown test/var/test

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.