Ubuntu13.04 install the vsftp Server

Source: Internet
Author: User
A server version of Ubuntu13.04 is installed in the virtual machine, and the vsftp server is configured after the installation. It is found that the vsftp under CentOS6 is a little different. After checking the information for a few days, I finally finished it and put it here to record it. 1. Install vsftp, this simple sudoapt-getinstallvsftpd2, configure/etc/vsftpd. conf3, save and exit, restart vsftp service sudoservicevsftpdrestar

A server version of Ubuntu 13.04 is installed on the Virtual Machine. After the server is installed, the vsftp server is configured. It is found that the vsftp under CentOS 6 is a little different. After checking the information for a few days, it is finally completed, put the record here.

1. Install vsftp, which is simple

Sudo apt-get install vsftpd

2. Configure/etc/vsftpd. conf

3. Save and exit. Restart the vsftp service.

Sudo service vsftpd restart

When filezilla is enabled to connect to ftp,/etc/vsftpd cannot be found. userlist: the file in centos is/etc/vsftpd/userlist, so you have to create/etc/vsftpd. userlist file, and then write the username to be logged in; then connect, the error 530 is displayed, no permission. It is strange that ubuntu can be accessed with this configuration in centos, but it does not work. It is found that chroot_list_enable = YES and chroot_list_file =/etc/vsftpd. chroot_list must be added to ubuntu.

Re-edit/etc/vsftpd. conf as follows:

Listen = YES


Anonymous_enable = NO


Local_enable = YES


Write_enable = YES


Local_umask = 022


Xferlog_enable = YES


Xferlog_std_format = YES

Connect_from_port_20 = YES


Pam_service_name = vsftpd


Userlist_enable = YES

Userlist_deny = NO
Userlist_file =/etc/vsftpd. user_list

Chroot_local_user = YES


Chroot_list_enable = YES
Chroot_list_file =/etc/vsftpd. chroot_list

Restart vsftp and access is normal.

If userlist_enable = YES and userlist_deny = NO, only vsftpd is available. users in user_list can access the table. When userlist_enable = YES and userlist_deny = YES, Except For vsftpd. other users in user_list can access the service.

If chroot_local_user = NO and chroot_list_enable = YES, all users except the users specified in the chroot_list_file file can execute chroot. When chroot_local_user = YES and chroot_list_enable = YES, only the user specified in the chroot_list_file file can execute chroot.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.