Linux FTP file related.

Source: Internet
Author: User
Tags ftp file

1. First check or download the FTP,VSFTPD installation package for download. If there is no download method for

Yum-y Install FTP (FTP is just a login client here in Linux) yum-y install VSFTPD (server main or VSFTPD) 2. Related Error Resolution

Connected to 192.168.10.100.

(VsFTPd 2.0.5)

User (192.168.10.100: (None)): Oracle

331 Specify the password.

Password:

Oops:cannot Change Directory:/home/oracle

          Login failed.
          Workaround:

Switch to server-side execution:

      [[email protected] ~]# set Sebool Ftpd_disable_trans 1

Note: If you want the settings to be permanent, attach the-p parameter when you execute setsebool.

Then restart the FTP service:

[Email protected] ~]# service vsftpd restart

Shutting down VSFTPD: [OK]

      starting vsftpd for vsftpd: [OK]

The client tries to log in again via ftp:

C:\Documents and Settings\administrator>ftp 192.168.10.100

Connected to 192.168.10.100.

(VsFTPd 2.0.5)

User (192.168.10.100: (None)): Oracle

331 Specify the password.

Password:

      successful Login.

OK, problem solved:)

3.Oops:cannot Change directory:/home/ftp is the solution.

The reason for this is that his CentOS system has SELinux installed because the default is no FTP-enabled support, so access is blocked. View SELinux Settings # getsebool-a|grep FTP Ftpd_disable_trans--off or Ftp_home_dir-->off//Use the Setsebool command to turn on # Setsebool Ftpd_disable_trans 1 or # Setsebool Ftp_home_dir 1//See if the current state is on status # getsebool-a|grep FTP Ftpd_disable_trans-On or Ftp_home_dir-->on//setsebool use the-p parameter, you don't need to enter this command every time you boot # setsebool-p Ftpd_disable_trans 1 or # setsebool-p Ftp_home_dir 1 # service VSFTPD Restart about SELinux configuration such as shutdown, just warning, forcing and so on need to edit/etc/sysconfig/selinux default is mandatory

Linux FTP file related.

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.