Summary of vsftpd in Ubuntu

Source: Internet
Author: User
Tags ftp login
# VSFTPD runs independently. NOlisten = YES # Anonymous Users are allowed to log on, NOanonymous_enable = YES # Allow anonymous users to create a folder anon_mkdir_write_enable = YES # Run anonymous users to upload files anon_upload_enable = YES # upload files (including directories) by anonymous users) umaskanon_umask = 000 # Allow Anonymous Users to delete/rename files and other operations anon_other_write_enable = YES # default root directory anon_root =/var/ftp # directories and files created by anonymous users, all permissions are 777anon_umask = 000 configuration for anonymous users to upload, download, and delete: listen = YESwrite_enable = YESanonymous_enable = YESanon_other_write_enable = YESanon_root =/var/ftpanon_up Load_enable = YESanon_mkdir_write_enable = YES Note: 1. to create a directory for ftp, the user corresponding to the ftp login account must have the write and execution permissions for the Created directory to the parent directory, that is, wx (3) 2. if the user corresponding to the ftp login account has no read permission on a directory, ftp will not list the directories and files under this directory. serious file errors are generally caused by the absence of anon_upload_enable = YES or enabled, so you will not be prompted to overwrite (even if you are prompted to overwrite, you will also be prompted to overwrite the file. vsftpd does not allow anonymous users to set the maximum permission (777) to the default home directory. Otherwise, an error is reported when anonymous users log on: 500 OOPS: vsftpd: refusing to run wi. Th writable anonymous root What should I do if an anonymous user is readable, downloadable, and uploadable? This is also simple. Create a directory under/var/ftp (/var/ftp is the default home directory for anonymous users) and set the permission to 777. Then change vsftpd. conf is OK; there is no difficulty 6. local_umask and anon_umask umask in vsftp are concepts of unix operating systems. umask determines that the initial permission umask = 022 is obtained when the Directory and file are created, and the new directory permission is 755, when the File Permission is 644 umask = 077, the new directory permission is 700, the File Permission is limited to 600 vsftpd local_umask and anon_umask. By default, the File Permission after vsftp upload is 600, and the directory permission is 700, in either case, if vsftp is used as a local user, you need to modify the local_umask value in the configuration file. If vsftp is used as a virtual user, you need to modify the anon_umask value in the configuration file.

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.