Ubuntu installs vsftpd after 530 Login incorrect

Source: Internet
Author: User

When you are finished installing VSFTPD with Apt-get Install, start FTP. Then use a workaround that the local user cannot log on.


sudo apt-get remove vsftpd

sudo rm/etc/pam.d/vsftpd

sudo apt-get install vsftpd


Ubuntu enabled Pam, the use of vsftp when used to/etc/pam.d/vsftpd this file (the default source installation will not have this file), so in addition to anonymous users outside the local user can not log on. So as long as the deletion is possible.

Then attach the contents of my configuration file:


1 Listen=yes

2 Anonymous_enable=no

3 Local_enable=yes

4 Write_enable=yes

5 Dirmessage_enable=yes

6 Use_localtime=yes

7 Xferlog_enable=yes

8 Connect_from_port_20=yes

9 Chroot_list_enable=yes

Ten Chroot_list_file=/etc/vsftpd.chroot_list

Secure_chroot_dir=/var/run/vsftpd/empty

Pam_service_name=vsftpd

Rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem

Rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key


You can then add the logged-in user to the/etc/vsftpd.chroot_list to log in to your $home using a local user and password.

It is said that the user's/bin/false to be changed to/sbin/nologin not verified, because I created the user when the specified is/sbin/nologin


Ubuntu installs vsftpd after 530 Login incorrect

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.