sky 的个人资料DBA日记照片日志列表更多 工具 帮助
2009/8/20

看笑话,学英语

http://www.fmylife.com/

不错

不过还需要有道词典的帮助:)

2009/8/10

rhel+vsftp错误

 

客户启用了selinux,配置vsftp失败,错误如下

C:\Documents and Settings\Administrator>ftp 218.62.70.104
Connected to 218.62.70.104.
220 Welcome to blah FTP service.
User (218.62.70.104:(none)): oracle
331 Please specify the password.
Password:
500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list
500 OOPS: priv_sock_get_result
Connection closed by remote host.

其实很简单,chroot_list这个文件不存在,执行touch /etc/vsftpd/chroot_list就可以了。

但做完之后错误变成了这个:

C:\Documents and Settings\Administrator>ftp 218.62.70.104
Connected to 218.62.70.104.
220 Welcome to blah FTP service.
User (218.62.70.104:(none)): oracle
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/oracle
500 OOPS: child died
Connection closed by remote host.

 

都是讨厌的selinux惹得祸,执行如下操作即可:

[root@dbserver vsftpd]# setsebool ftpd_disable_trans 1
[root@dbserver vsftpd]# service vsftpd restart

 

之后发现vnc也不好用,干脆关掉selinux算了

修改/etc/selinux/config

把SELINUX改成disabled,重启就可以了。

后来发现可能没selinux啥事,他们防火墙上没开5901端口:(