Ftp security settings and ftp Security

Source: Internet
Author: User

Ftp security settings and ftp Security

1. File Introduction

Description of ftpuser and user_list files in/etc/pam. d/vsftpd; (ADD and change the file path after file =)
Description of userlist_enable and userlist_deny in/etc/vsftpd. conf.

For the sake of security, the Administrator does not want accounts with excessive permissions (such as root) or accounts that are not commonly used in the system (to prevent exploitation) to log on to FTP, to upload or download insecure files.

Ftpuser: stores files that prohibit access to ftp users. It is a blacklist and is not affected by any configuration items;
User_list: stores ftp user files, which can be blacklisted and whitelist, which is affected by userlist_enable and userlist_deny.

[Anti-brainless malicious reprint, source: http://customsec.cn]

2. Related Configuration

(1) Because ftpuser is not affected by other configurations, you can directly add users who are not allowed to log on to ftp to this list, and use more, but you can only configure access to the ftp blacklist, the whitelist cannot be created. (Only configure the blacklist. recommended)
(2) user_list is affected by the configuration of userlist_enable and userlist_deny in vsftpd. conf:

When userlist_enable = YES, the configuration of userlist_deny takes effect. If userlist_enable = NO, the configuration of userlist_deny does not take effect.

Eg 1: userlist_enable = YES, userlist_deny = YES
In this case, user_list is blacklisted and users in this list cannot access ftp

Eg 2: userlist_enable = YES, userlist_deny = NO
In this case, user_list is a white list. Users in this list can access ftp, but other users cannot.

Eg 3: userlist_enable = NO, userlist_deny = YES
Eg 4: userlist_enable = NO, userlist_deny = NO
The third and fourth types are equivalent to no configuration and do not take effect. All users can access the ftp

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.