Configure the FTP service in Linux (Red Hat 5.5)

Source: Internet
Author: User

1. First, check whether FTP is installed in the system.ProgramPackage

Rpm-Qa | grep vsftpd

2If not, go to the installation CD directory.

CD/Media/CD name/Server

Ls | grep FTP

You will see many files with the suffix. rpm.

You can choose to install or execute rpm-IVH *. RPM to install all

3. Check whether the installation is successful after installation.

The following message indicates that the vsftpd service is stopped, indicating that the service is installed but not enabled.

[Root @ localhost root] # service vsftpd status

Vsftpd is stopped (vsftpd stopped)

 

4. Start the service

[Root @ localhost root] # service vsftpd start

Starting vsftpd For vsftpd:

Check again and find that the instance is in the starting status:

[Root @ localhost root] # service vsftpd status

Vsftpd (PID 4510) is running...

5. Start the FTP service automatically upon startup

Chkconfig vsftpd on

Service iptables stop firewall shutdown command

Bytes ----------------------------------------------------------------------------------------------------

Enables root users to use ftp(Not recommended)

By default, the root user cannot use ftp, as shown below:

-------------------------------------------------------

C: \ Users \ ThinkPad> FTP 192.168.141.123

Connect to 192.168.141.123.

220 (vsftpd 1.1.3)

User (192.168.141.123 :( none): Root

530 Permission denied.

Logon Failed.

--------------------------------------------------------

Modify the/etc/vsftpd/ftpusers file, which records users who cannot log on using FTP, comment out the root user

Modify the/etc/vsftpd/user_list file and comment out the root user.

Note: The/etc/vsftpd/user_list file and/etc/vsftpd. the conf file is associated If/etc/vsftpd. in the conf file, userlist_enable = Yes (this is also the default setting ).

Users listed in the/etc/vsftpd/user_list file cannot use ftp.

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.