Linux build FTP Server anonymous, local access

Source: Internet
Author: User

Note: This example opens the FTP service command for CENTOS7:systemctl start vsftpd.service shutdown Firewall command for systemctl stop Firewalld , 7 Release the FTP server as service vsftpd start or close Slinux service Setenforce 0


1. Install FTP

Rpm-qa VSFTPD # # #查看ftp是否安装

If the yum install-y vsftpd is not installed


2. Start the FTP service:

Systemctl Start Vsftpd.service

View the service running status: Systemctl status Vsftpd.service


1. Anonymous User login settings:

Login Name: FTP (anonymous) no password

Login Home directory for/var/ftp/pub

When FTP is started, you can access anonymous users by default, only download permission does not have additional permissions

Let anonymous users have permission to upload, delete, etc.

1.var/ftp/directory under the default set of a sub-folder named/pub, can give anonymous access to FTP when the public upload files to use, do the following to the anonymous user FTP to the directory has write permissions to upload data

Chown ftp/var/ftp/pub


2. Modify the configuration file:

Vim/etc/vsftpd/vsftpd.conf

Anonymous_enable=yes # # #默认存在

Anon_upload_enable=yes # # #默认被注释掉的

anon_mkdir_write_enable=yes## #默认被注释掉的

anon_other_write_enable=yes## #手动加进去

3. Restart the service:

Systemctl Restart Vsftpd.service

4. Testing

Configuration file parameters in detail:

Write_enable=yes: A global option for enabling and prohibiting write access to the VSFTPD service, whether anonymous, local, or virtual users must turn on this if they want to allow uploads


Anon_upload_enable=yes: Used to allow, disallow anonymous users to upload files in an existing writable directory only


Anon_mkdir_write_enable=yes: Used to allow and disallow anonymous users from creating folders in an existing writable directory


Anon_other_write_enable=yes: Used to allow, prohibit anonymous users to write permissions in the existing writable directory, delete, rename, overwrite and other operations.


2. ftp--local user authentication based on user authentication

Close Anonymous user--Create user--Set password--test

1. Modify the configuration file

Vim/etc/vsftpd/vsftpd.conf

anonymous_enable=no # # #关闭匿名用户

Useradd User Name

passwd Password

Then test!

Local user authentication only needs to create the user, login can

Based on the virtual user authentication is still in the update, a few days later will be updated!



This article is from the "Hing" blog, make sure to keep this source http://jiaxinwang.blog.51cto.com/12273793/1924232

Linux build FTP Server anonymous, local access

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.