Ahjesus configure vsftpd and xinetd

Source: Internet
Author: User

For simple configuration of vsftpd, refer to this tutorial.Portal

The xinetd configuration in the tutorial is invalid,

The following method is used to start ftp in xinetd mode:

1. Create a file vsftpd in the/etc/xinetd. d/directory.

The content is as follows:

service ftp{        socket_type             = stream        wait                    = no        user                    = root        server                  = /usr/sbin/vsftpd        log_on_success          += DURATION USERID        log_on_failure          += USERID        nice                    = 10        disable                 = no}

2. Copy vsftpd. conf to the/etc/directory. Because the xinetd vsFTPd preparation file should be in the/etc directory, We must copy this file to the/etc directory, otherwise, the local user cannot log on to the system. That is to say, if the file is not copied, non-Anonymous ftp users cannot access the file, but anonymous users can only access the file.

Cp/etc/vsftpd. conf/etc/vsftpd. conf

3. Change the configuration file/etc/vsftpd. conf and note the following items:

That is

Listen = YES

Change

# Listen = YES

Or delete this line.

4. Delete the/etc/init. d/vsftpd file. In fact, it is best to back up data elsewhere, because sometimes we try to experiment, and it may be switched to standalone mode to start. I directly moved to another directory, such as the backup directory under/root.

Mkdir/root/backup

Mv/etc/init. d/vsftpd/root/backup

5. Cancel the vsftpd service.

6. Restart the xinetd service.

Service xinetd restart

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.