How to turn on FTP service under Linux

Source: Internet
Author: User

How to turn on FTP service under Linux

1. First the server to install the FTP software to see if the FTP software has been installed:
#which vsftpd
If you see a vsftpd directory stating that the server has FTP software installed

2. View FTP Server Status
#service vsftpd Status

3. Start the FTP server
#service vsftpd Start

4. Restart the FTP server
#service vsftpd Restart

5. See if the service has started
   #netstat-an | grep 21
   tcp        0      0 0.0.0.0:21                   0.0.0.0:*                    listen < BR style= "Text-align:left;" >   If you see the above information, it proves that the FTP service is turned on.

6. If you need to open the root user's FTP permissions to modify the following two files
Comment out root in #vi/etc/vsftpd.ftpusers
#vi/etc/vsftpd.user_list also comment out the root
Then restart the FTP service.

7. VSFTPD Oops:cannot Change Directory
Login Error:
C:\>ftp 192.168.0.101
Connected to 192.168.0.101.
(VsFTPd 2.0.5)
User (192.168.0.101: (None)): Frank
331 Specify the password.
Password:
Oops:cannot Change Directory:/home/frank
Login failed.
Ftp> ls
Oops:child died
Connection closed by remote host.
Workaround:
Setsebool Ftpd_disable_trans 1
Service VSFTPD Restart
It's OK!
This is the SELinux Setup command, it is also possible to turn selinux off before you are unfamiliar with selnux.

8. Turn on the FTP service automatically after the OS restarts.
Method One:
CD/ETC/XINETD.D, edit the settings for the FTP service configuration file gssftp:
Vi/etc/xinetd.d/gssftp, two things will be modified:

650) this.width=650; "src=" Http://hi.csdn.net/attachment/201107/20/0_1311148423KqU0.gif "style=" border:none; "/ >


(a) Server_args =-l–a Remove-a change to Server_args =-L
(b) Disable=yes changed to Disable=no
(c) Save the exit.

Method Two:
(a) System-config-services, system services into the graphical interface to see if there are vsftpd entries, if not go to 2., Save and exit

(b) Install the service (Start-delete/Add program) with Redhat third disk, around 200K

(c) #setup
You can see the VSFTPD item at this time, select this services item, and then exit after saving.


This article is from the Linux OPS blog, so be sure to keep this source http://4203232.blog.51cto.com/4193232/1613517

How to turn on FTP service under Linux

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.