更改用户 oraftp 的密码 。
passwd: 所有的身份验证令牌已经成功更新。
[root@ccdb ~]#
C:\Users\admin>ftp 192.168.1.100
连接到 192.168.0.100。 220 (vsFTPd 2.2.2) 用户(192.168.0.100:(none)): oraftp 331 Please specify the password. 密码: 500 OOPS: cannot change directory:/home/ftpuser/oraftp 500 OOPS: child died 远程主机关闭连接。
[root@ccdb ~]# setsebool -P ftp_home_dir on [root@ccdb ~]# [root@ccdb ~]# 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 on ftpd_connect_db off ftpd_use_fusefs off ftpd_use_passive_mode off httpd_enable_ftp_server off tftp_anon_write off tftp_use_cifs off tftp_use_nfs off [root@ccdb ~]# service vsftpd restart [root@ccdb ~]#
ftp> put d:\1.txt
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
ftp>
425 Failed to establish connection,如果ftp连接没问题,ls执行不成功,说明是防火墙的问题,需要检查这个
crontab不能正常工作可以尝试通过下面的方式解决
crontab -u root /var/spool/cron/root
service crond restart