打印

Pureftpd 安装成功后,ftp过去,显示连接失败,错误码421

Pureftpd 安装成功后,ftp过去,显示连接失败,错误码421

[右] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[右] 220-You are user number 1 of 50 allowed.
[右] 220-Local time is now 16:57. Server port: 21.
[右] 220-This is a private system - No anonymous login
[右] 220-IPv6 connections are also welcome on this server.
[右] 220 You will be disconnected after 15 minutes of inactivity.
[右] USER Holen
[右] 331 User Holen OK. Password required
[右] PASS (隐藏)
[右] 421 Home directory not available - aborting
[右] 连接失败
[右] 正在延迟 120 秒, 之后将尝试第 8 次重新连接
[右] 已放弃重新尝试

TOP

lnmp ftp info 显示一下该用户的信息看看
估计可能你改ftp账号设置的用户目录有问题

TOP

军哥,麻烦你看看

[root@izwz98tjodcwg8dzpk854uz ~]# lnmp ftp info
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Usage: lnmp ftp {add|list|del}
[root@izwz98tjodcwg8dzpk854uz ~]# lnmp ftp list
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Holen               /home/wwwroot/Holen.net/./                                 
List FTP User Sucessfully.
[root@izwz98tjodcwg8dzpk854uz ~]#

TOP

现在可以了,谢谢军哥提点

[root@izwz98tjodcwg8dzpk854uz ~]# ls
lnmp1.4         lnmp-install.log      reset_mysql_root_password.sh
lnmp1.4.tar.gz  pureftpd-install.log
[root@izwz98tjodcwg8dzpk854uz ~]# ls /
bin   dev  home  lib64       media  opt   root  sbin  sys  usr
boot  etc  lib   lost+found  mnt    proc  run   srv   tmp  var
[root@izwz98tjodcwg8dzpk854uz ~]# pwd
/root
[root@izwz98tjodcwg8dzpk854uz ~]# cd /home/wwwroot/
[root@izwz98tjodcwg8dzpk854uz wwwroot]# ls -l
total 4
drwxr-xr-x 3 www www 4096 Oct 13 14:59 default
[root@izwz98tjodcwg8dzpk854uz wwwroot]# mkdir -m 777 Holen.net
[root@izwz98tjodcwg8dzpk854uz wwwroot]# ls -l
total 8
drwxr-xr-x 3 www  www  4096 Oct 13 14:59 default
drwxrwxrwx 2 root root 4096 Oct 14 09:37 Holen.net
[root@izwz98tjodcwg8dzpk854uz wwwroot]#

TOP