由于根分区容量不够,将vsftp默认匿名用户目录/var/ftp/pub 软链接到/sdb/yum下的yum下,结果一直导致下面错误

解决方法是修改/etc/vsftpd/vsftpd.conf

添加字段 anon_root=/sdb/yum   ---> 将匿名用户默认家目录改为现有yum源目录
 

 

错误:[root@localhost ~]# yum update
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
debuginfo                                                          0 B 00:00
ftp://192.168.1.105/pub/Server/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for debuginfo: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: debuginfo. Please verify its path and try again
FTP用的是VSFTP。

系统:REHL 5.4