For vsftpdpam authentication File Settings, see !!!

Source: Internet
Author: User
Tags crypt
For vsftpdpam authentication File Settings, see !!! -- Linux general technology-Linux technology and application information. For details, refer to the following section. [I = s] This post was last edited by the light-years that have disappeared at, January 31 ,.

I used vsftpd + mysql to build ftp, and wanted to achieve the same effect for both the virtual user and the local user. After several days of searching for information, I tried the methods I mentioned on the Internet, however, only virtual users can log on, while local users cannot log on .....


This is the content of my pam file.
[Root @ localhost ~] # Cat/etc/pam. d/vsftpd
# % PAM-1.0
# Session optional pam_keyinit.so force revoke
# Auth include system-auth
# Auth required pam_shell.so
# Account include system-auth
# Session include system-auth
# Session required pam_loginuid.so
# Auth required pam_listfiles.so item = user sense = deny file =/etc/vsftpd/f tpusers onerr = succeed

Auth sufficient/usr/lib/security/pam_mysql.so user = virtual passwd = maji nlong host = localhost db = vsftpd table = users usercolumn = name passwdcolumn = passwd c rypt = 0
Account sufficient/usr/lib/security/pam_mysql.so user = virtual passwd = maji nlong host = localhost db = vsftpd table = users usercolumn = name passwdcolumn = passwd c rypt = 0
Auth required pam_listfiles.so item = user sense = deny file =/etc/vsftpd/f tpusers onerr = succeed
Auth required pam_shell.so
Auth include system-auth
Account include system-auth
Session include system-auth
Session required pam_loginuid.so
Session optional pam_keyinit.so force revoke

Follow the following online methods:

Auth sufficient/usr/lib/security/pam_mysql.so user = virtual passwd = majinlong host = localhost db = vsftpd table = users usercolumn = name passwdcolumn = passwd crypt = 0
Account sufficient/usr/lib/security/pam_mysql.so user = virtual passwd = majinlong host = localhost db = vsftpd table = users usercolumn = name passwdcolumn = passwd crypt = 0
Auth required pam_listfiles.so item = user sense = deny file =/etc/vsftpd/ftpusers onerr = succeed
Auth required pam_stack.so service = system-auth
Auth required pam_shell.so
Account required pam_stack.so service = system-auth
Session required pam_stack.so service = system-auth

Most of the websites are done on redhat 5, and what I do on centos is related to this?
Related Article

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.