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
   tcp        0       0 0.0.0.0:21                   0.0.0.0:*                    listen 
   If you see the above information, it proves that the FTP service is turned on.

6. If you need to turn on the root user's FTP permission to modify the following two files
  #vi/etc/vsftpd.ftpusers the root
  #vi/etc/vsftpd.user_ The list also comments out root
  and then restarts 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 Please 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
    is OK!
 
   This is the SELinux Setup command, it is possible to turn selinux off before you are familiar 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:

(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.

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.