天天看点

vsftpd dead but subsys locked 的解决方法

  续前面的:

  C:\Program Files\SecureCRT>vsftp -v -p 21 [email protected]

  --因为我们的vsftp的port是 21.

  VSFTP 版本 5.2.2 (build 92) 启动。 (使用 SSH2Core 版本 4.1.0.267。)

  [本地]: SSH2Core version 4.1.0.267

  [本地]: Connecting to 192.168.203.132:21 ...

  [本地]: Changing state from STATE_NOT_CONNECTED to STATE_EXPECT_KEX_INIT.

  [本地]: Using protocol SSH2

  [本地]: PRE-IDENT: 220 (vsFTPd 1.1.3)

  [本地]: Using protocol SSH2

  [本地]: PRE-IDENT: 530 Please login with USER and PASS.

  [本地]: Changing state from STATE_EXPECT_KEX_INIT to STATE_TRANSPORT_STOPPING.

  [本地]: Changing state from STATE_TRANSPORT_STOPPING to STATE_CLOSING.

  [本地]: Changing state from STATE_CLOSING to STATE_CLOSED.

  [本地]: Connected for 44 seconds, 38 bytes sent, 116 bytes received

  C:\Program Files\SecureCRT>ftp 192.168.203.132

  Connected to 192.168.203.132.

  220 (vsFTPd 1.1.3)

  User (192.168.203.132:(none)): xiong

  331 Please specify the password.

  Password:

  230-Welcome to Xiong's Server! Have fun!

  230 Login successful. Have fun.

  ftp> pwd

  257 "/home/xiong"

  在重启vsftpd服务时,发生了一个"vsftpd dead but subsys locked "错误.

  解决方法如下:

  1. vsftpd dead but subsys locked

  在开启vsftpd 时,出现"vsftpd dead but subsys locked"的提示,

  解决方法:service xinetd stop

  service vsftpd start

  service xinetd start

  如果还不行,则可能是:超级进程中有个gssftp和vsftpd冲突;屏蔽gssftp后再重起xinet和vsftpd就ok。

  步骤如下:

  用netstat -tlunp|grep 21查看是否用其它FTP

  再grep -i ftp /etc/xinetd.d/*

  /etc/xinetd.d/gssftp:# description: The kerberized FTP server accepts FTP connections

  /etc/xinetd.d/gssftp:service ftp

  /etc/xinetd.d/gssftp: server = /usr/kerberos/sbin/ftpd

  /etc/xinetd.d/rsync:# description: The rsync server is a good addition to an ftp server, as it

  修改/etc/xinetd.d/gssftp这个文件,

  disable = no改成disable = yes

  然后,重启xinetd,service xinetd restart

  再重启动vsftpd, service vsftpd restart

  2.连接FTP server时,出现 "421 Service not available."

  此时查看# cat /etc/hosts.allow

  #

  # hosts.allow This file describes the names of the hosts which are

  # allowed to use the local INET services, as decided

  # by the '/usr/sbin/tcpd' server.

  #

  解决方法:

  在/etc/hosts.allow最后加入一句"vsftpd:ALL":

  vi /etc/hosts.allow

  ...

  ...

  vsftpd:ALL

  附常见的解决方法(我试过,不行.

  

  ):

  In RHEL AS3Update3, after started the vsftp ftp server and connected to it from another computer,

  it prompted the user neaded an authorization and stopped there. Then when you use the server configure tools to restart the vsftp service ,

  it says "vsftpd dead but subsys locked". I used the followed method to figure it out.

  Method 1). Open the /etc/xinit.d/gssftp file. change the line "Server_args= -l -a " to "Server_args=-l "

  this will resolve the authorization problem and can connect the ftp server successfully. but the password verify process is time consumer.

  Method 2). Open the /etc/xinit.d/gssftp file, change the line "disable=no" to "disable=yes"

  this will make the vsftp server working as a stand alone demon and the connection is fluent.

  After this operation, you must use service vsftpd restart to restart the vsftp server.

  顺带说一下,有google的时候,有人认为可能是配置文件是有不明字符.

  所以就需要找出除 Comment之外的有用的设置.

  # more /etc/vsftpd/vsftpd.conf |grep [b]^[^#] [/b]

  anonymous_enable=YES

  local_enable=YES

  write_enable=YES

  local_umask=022

  dirmessage_enable=YES

  xferlog_enable=YES

  connect_from_port_20=YES

  xferlog_std_format=YES

  pam_service_name=vsftpd

  userlist_enable=YES

  listen=YES

  tcp_wrappers=YES