Linux learning notes file service Vsftp details

Source: Internet
Author: User
Article Title: Linux learning notes file service Vsftp details. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Knowledge point:

1. FTP uses TCP connection and TCP port

2. During communication, FTP needs to establish two TCP connections:

One for control information. The default TCP port number is 21.

One for data transmission. The default TCP port number is 20.

3. Vsftp is a GPL-based FTP server on Unix-like systems.

4. The VS in the name indicates "Verysecure", which indicates high security.

Configuration:

1. Check whether Vsftp is installed.

# Rpm? Qa vsftpd

2. Installation

Put the third Disc

# Mount/mnt/cdrom

# Cd/mnt/cdrom/RedHat/RPMS

# Rpm? Ivh vsftpd-1.1.3-8.i386.rpm

# Cd; eject

3. Start and Stop the Vsftp Service

# Service vsftpd start

# Service vsftpd stop

# Service vsftpd restart

Permanent start: # setup

# Ps? Ax | grep vsftpd to check whether the process is started.

# Chkconfig? Level 2345 vsftpd on is set to automatically start the process when the system starts.

4. Access Vsftp

Go to ftp 192.168.0.1

Enter the password and enter: ls to view put upload get download

Leave bye

5. Configuration File

Main configuration file/etc/vsftpd. conf

User Control file/etc/vsftpd. ftpusers: specifies which users cannot access FTP, which is equivalent to a blacklist

Main configuration file:

Option = value

It should be noted that the equal sign cannot be blank on both sides, otherwise it is incorrect.

=== Ascii settings ==============================

Ascii_download_enable

Controls whether ASCII download is available. The default value is NO.

Ascii_upload_enable

Controls whether ASCII upload is available. The default value is NO.

=== Individual user settings ===========================

Chroot_list_enable

If this function is enabled, all local users can log on to the data folder outside the root directory, except those listed in/etc/vsftpd. chroot_list. The default value is NO.

Userlist_enable

Usage: YES/NO

If this function is enabled, the user name in/etc/vsftpd. user_list is read. This function can display a failure message before asking for the password, without the need to check the password program. The default value is disabled.

Userlist_deny

Usage: YES/NO

This option is verified only when userlist_enable is started.

If this option is set to YES, users in/etc/vsftpd. user_list cannot log on,

If it is set to NO, only users in/etc/vsftpd. user_list can log on.

In addition, this function can display an error message before asking for the password, without the need to check the password program.

User_config_dir

Defines the directory where individual users set files,

For example, if user_config_dir =/etc/vsftpd/userconf is defined and the host has users test1 and test2, we can add the names test1 and test2. if test1 is used to log on to the user_config_dir directory, the setting in the file test1 under user_config_dir will be read.

The default value is none.

[1] [2] [3] Next page

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.