免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1581 | 回复: 1
打印 上一主题 下一主题

RHEL AS3U3 "vsftpd dead but subsys locked" problem [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-08 17:14 |只看该作者 |倒序浏览
重启vsftpd服务的错误提示:vsftp dead but subsys locked

请教高手!!

论坛徽章:
0
2 [报告]
发表于 2007-09-09 14:58 |只看该作者
baidu后的:
http://blog.csdn.net/yunccll/archive/2006/12/11/1438724.aspx



系统: RHEL4

ftp软件:vsftpd 2.**** , 与 xinetd 分离运行.

状态: 执行用service vsftpd status ->vsftpd dead, but subsys locked ,重新安装vsftp,结果依旧.

1. 先删除 /var/lock/subsys/vsftpd -> rm -frv  /var/lock/subsys/vsftpd

2.  以下几种可能的解决方法(或者关系)

      a.  仔细检查/etc/vsftpd/vsftpd.conf的配置文件的内容格式.确定正确,主要是全角半角字符的编码错误.

      b.  确认                listen=YES       TCP_trappers=YES  

      c. cp /etc/vsftpd/vsftpd.conf    /etc/vsftpd/vsftpd.conf.bak   \  rm -f /etc/vsftpd/vsftpd.conf

          cp /etc/vsftpd/vsftpd.conf .bak   /etc/vsftpd/vsftpd.conf    \ rm -f   /etc/vsftpd/vsftpd.conf.bak

    说明:cp 和mv命令对selinux security context影响  cp将拷贝过去的文件的context改变为目的目录的context,而mv则不会改变移动文件的context  

(I've had problems like this before, and I finally found out what the problem was. When you 'mv' a file (like a config file from a home dir to the proper location) it keeps the selinux context setting from the originating directory. When you 'cp' a file, it will change that context to the context of the directory being moved too. I have mv'd backups of configs from home dir to /etc and ran into the same error message. If you do a fixfiles relabel, or touch /.autorelabel and reboot, it should re-write the security context and hopefully clear up your problems.)

    d. 关闭 xinetd 服务, 先启动 vsftpd, 再启动xinetd .  (删除gssftp)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP