Failed to log on to ftp under RHEL5

Source: Internet
Author: User
Ftp_home_diroff the ftp configured in rhel5 has not been moved for a long time. I just found that the ftp fails to be logged on during the busy wordpress. First, check the firewall: [root @ localhostlubinsu] # serviceiptablesstatusFirewallisstopped. the firewall has been disabled. It does not appear to be the problem. Amount, root Login

Ftp_home_dir off the ftp configured in rhel5 has not been moved for a long time. I just found that ftp could not be logged on when running wordpress. Check the firewall first:

[Root @ localhost lubinsu] # service iptables status
Firewall is stopped.
The firewall has been disabled. It does not appear to be the problem.

Yes, the root user logs on and finds that ftp does not know when to close.

Open =. =

Service vsftpd start

Another error was reported this time:

C: \ Users \ snoopy> ftp 192.168.46.129
Connected to 192.168.46.129.
220 (vsFTPd 2.0.5)
User (192.168.46.129 :( none): lubinsu
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/lubinsu
500 OOPS: child died
Connection closed by remote host. the error is clearly related to the directory. By default, selinux is installed in RedHat, which is a mandatory access control system provided in the Linux kernel. ftp support is not enabled by default, therefore, dir and other commands are not supported. You can run the getsebool-a | grep ftp command to check whether ftp support is enabled. Let's check the ftp status:

SELinux status: sestatus-B | grep ftp [root @ localhost lubinsu] # sestatus-B | grep ftp
Allow_ftpd_anon_write off
Allow_ftpd_full_access off
Allow_ftpd_use_cifs off
Allow_ftpd_use_nfs off
Ftp_home_dir off
Ftpd_disable_trans off
Ftpd_is_daemon
Httpd_enable_ftp_server off
Most of the tftpd_disable_trans off operations are off. You can run the following command:

[Root @ localhost lubinsu] # setsebool-P ftpd_disable_trans on can be enabled here for both ftp_home_dir and ftpd_disable_trans. One is to switch between directories and the other is to support transmission, you may prefer to open the former. Ps:-P indicates that it is permanently valid. If it is not added, it is only valid for the current status and will expire after restart. Restart the service.

C: \ Users \ snoopy> ftp 192.168.46.129
Connected to 192.168.46.129.
220 (vsFTPd 2.0.5)
User (192.168.46.129 :( none): lubinsu
331 Please specify the password.
Password:
230 Login successful.
Ftp> put D: \ latest.tar.gz
200 PORT command successful. Consider using PASV.
150 OK to send data.
226 File receive OK.
Ftp: 2229692 bytes sent in 0.06 Seconds 39117.40 Kbytes/sec. nice!

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.