CentOS 6.x Security Proftpd

Source: Internet
Author: User

In CentOS 6.x Security proftpd:

yum -y remove vsftpdyum -y install proftpdchkconfig proftpd on

After changing the settings and re-activating proftpd, the ftp user cannot log on normally !! It is also irrelevant to the setting of the fire prevention program. I have been using proftpd in redhat linux 7.3, and this situation is still encountered.

Check/var/log/secure. The main messages are as follows:

proftpd: PAM unable to dlopen(/lib/security/pam_stack.so): /lib/security/pam_stack.so: cannot open shared object file: No such file or directoryproftpd: PAM adding faulty module: /lib/security/pam_stack.so

PAM is used in Linux to specify the quota Authentication Mode for various services. All PAM settings are stored in/etc/pam. d. Take a look at vsftpd and the information found on the network. The solution is as follows:

This is the content of the original/etc/pam. d/proftpd:

#%PAM-1.0auth       required     pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeedauth       required     pam_stack.so service=system-authauth       required     pam_shells.soaccount    required     pam_stack.so service=system-authsession    required     pam_stack.so service=system-auth

Just change it to this:

#%PAM-1.0auth       required     pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeedauth       required     pam_shells.soaccount    include      password-authsession    required     pam_loginuid.so


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.