Linux configuration vsftpd Anonymous users can add, modify, and delete files

Source: Internet
Author: User

  1. Configuration of vsftpd.conf files (vi/etc/vsftpd/vsftpd.conf)

# Allow anonymous users to log on to FTP

Anonymous_enable=yes

# Set the login directory for anonymous users (if required, add and modify them yourself)

Anon_root=/var/ftp/pub

# Open Upload permissions for anonymous users

Anon_upload_enable=yes

# Open Anonymous user permissions to create a directory

Anon_mkdir_write_enable=yes

# Open Anonymous user permissions to delete and rename (if required, add it yourself)

Anon_other_write_enable=yes

#匿名用户的掩码 (if necessary, add it yourself, meaning: If Umask is 022, then create a file with permission 666, the actual permissions of the file is 666-022=644)

anon_umask=022

  2, the FTP directory permissions settings

By default, the FTP root directory is/var/ftp, for security, this directory by default does not allow the set to 777 permissions, otherwise FTP will not be accessible. But we want to upload files anonymously, need "other" user's write permission, the correct way:

In the/var/ftp set up a upload (the name of their own) folder, set the folder permissions to 777 (depending on the need to set their own), in upload this folder, anonymous users can upload files, create folders, delete files and so on.

Linux configuration vsftpd Anonymous users can add, modify, and delete files

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.