Configure the FTP service under Linux (Red Hat 5.5) __linux

Source: Internet
Author: User

1, first check whether the system has installed an FTP package

Rpm-qa|grep vsftpd

2, if not, to the installation of the CD-ROM directory.

cd/media/CD name/server

ls | grep FTP

You'll see a lot of files with a suffix named. rpm

You can choose to install, or you can perform RPM-IVH *.rpm all installation

---

You can also download the installation directly by performing the following command:

Using Yum Installation

# yum-y Install FTP vsftpd

or use RPM to install the following two packages

Ftp-0.17-66.el7.x86_64

vsftpd-3.0.2-9.el7.x86_64---

3, after installation to see if the successful installation

The following prompts the VSFTPD service to stop, indicating that the service has been installed but not opened

[Root@localhost root]# Service VSFTPD Status

VSFTPD is stopped (VSFTPD stopped)

4, open the service

[root@localhost root]# Service vsftpd start

Starting vsftpd for VSFTPD:

See again that discovery is already in the startup state:

[Root@localhost root]# Service VSFTPD Status

VSFTPD (PID 4510) is running ...

---

Note: Turn off service

Service VSFTPD Stop

---

5, the boot automatically start the FTP service

Chkconfig vsftpd on

Service iptables stop firewall shutdown command

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

Enable the root user to use FTP (not recommended)

FTP cannot be used by the root user by default, as follows:

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

C:\users\thinkpad>ftp 192.168.141.123

Connected to 192.168.141.123.

1.1.3 (VSFTPD)

User (192.168.141.123: (none)): Root

530 Permission denied.

Login failed.

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

Modifies the/etc/vsftpd/ftpusers file, which records users who cannot log on using FTP, and comments the root user

Modify the/etc/vsftpd/user_list file to annotate the root user.

Note: The/etc/vsftpd/user_list file is associated with the/etc/vsftpd/vsftpd.conf file if the userlist_enable= in the/etc/vsftpd/vsftpd.conf file YES (This is also the default setting), then

Users listed in the/etc/vsftpd/user_list file will not be able to 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.