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