FTP Server Upload troubleshooting-Linux general technology-Linux technology and application information. The following is a detailed description. After the FTP server is set up, configure the following files:
1. vsftp server configuration file:
The vsftpd configuration file includes the following:
/Etc/vsftpd. conf: Master configuration file of the vsftpd Server
/Etc/vsftpd/ftpusers: the user list listed in the change file cannot access the ftp server.
/Etc/vsftpd/user_list: When "userlist_enable" in the/etc/vsftpd. conf file"
When the values of "userlist_deny" and "userlist_deny" are both Yes, the users listed in the modified file cannot access the ftp server.
2. Common configuration parameters in the/etc/vsftpd. conf file
1. logon and anonymous user settings
Anonymous_enable = YES sets whether anonymous users are allowed to log on to the FTP server.
Local_enable = YES set whether to allow local users to log on to the FTP server
Write_enable = YES global settings, set whether to enable write permission for logon users
Local_umask = 022 sets the mask 022 generated by the local user's file, and the corresponding permission is 755 (777-022 = 755 ).
Anon_umask = 022 set the umask mask for newly added files by anonymous users
Anon_upload_enable = YES indicates whether anonymous users are allowed to upload files. Only the value of write_enable is YES,
This setting is valid.
Anon_mkdir_write_enable = YES: Specifies whether anonymous users are allowed to create directories. Only values in write_enable are allowed.
Effective only when set to YES
Anon_other_write_enable = NO if it is set to YES, Anonymous Users are allowed to upload redundant files and create directories.
Permissions, as well as the delete and rename permissions. The default value is NO.
3. Set welcome information
Ftpd_banner = Welcome to blah FTP service set the information displayed when you log on to the FTP server
4. Set the directory of the client after Logon
Local_root =/var/ftp sets the directory where the local user logs on. This option is not available by default.
After the FTP server is recorded, the directory is the home directory of the user.
Anon_root =/var/ftp sets the directory where anonymous users log on to the FTP server. If/var/ftp is not specified
5. Set whether to lock all users to the specified FTP directory.
By default, anonymous users are locked in the default FTP directory, while local users can access their FTP directories.
Other content. For security considerations, we recommend that you lock the local user in the specified FTP directory.
Chroot_list_enable = YES sets whether to enable the user list file specified by the chroot_list_file configuration item.
Chroot_local_user = YES is used to specify the user in the user list file, whether to allow switching to a directory other than the specified FTP directory>
Chroot_list_file =/etc/vsftpd/chroot_list is used to specify the user list file and change the file to control the file. Some users can switch to a directory other than the specified FTP directory.
When chroot_list_enable = NO and chroot_local_user = NO, all users can switch to a directory other than the specified FTP directory>
When chroot_list_enable = YES and chroot_local_user = NO, users listed in/etc/vsftp/chroot_list> can switch to a directory other than the specified FTP directory, users not listed in the change file cannot switch to a directory other than the specified directory.
6. Set User Access Control
6. Set User Access Control
The userlist_enable = YES/etc/vsftpd/user_list file takes effect. It does not take effect when NO is obtained.
The user in the userlist_deny = YES/etc/vsftpd/user_list file cannot access the server.
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