LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 981|回复: 4

源码安装vsftpd时碰到的问题

[复制链接]
发表于 2003-9-23 03:58:09 | 显示全部楼层 |阅读模式
奇怪每次第一次刚编绎好时
/usr/local/sbin/vsftpd &
用localhost 和192.168.1.3访问都正常
可是一旦重启,ntsysv里有 vsftpd的启动选项
就只能使用localhost访问了192.168.1.3就根本不能连接,
这次我不想放弃了,哪位高手知道原因
 楼主| 发表于 2003-9-23 04:17:47 | 显示全部楼层
将ntsysv里的vsftpd 去除

/usr/local/sbin/vsftpd & 启动又可以了

估计就是这个东东
/etc/xinetd.d/vsftpd在做怪
# default: on
# description:
#   The vsftpd FTP server serves FTP connections. It uses
#   normal, unencrypted usernames and passwords for authentication.
# vsftpd is designed to be secure.
service ftp
{
        disable        = yes ====改为NO了自己又改回来
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/local/sbin/vsftpd
#       server_args             =
#       log_on_success          += DURATION USERID
#       log_on_failure          += USERID
        nice                    = 10
}
 楼主| 发表于 2003-9-23 06:01:12 | 显示全部楼层
#only_from 192.168.1.0
#不允许的连接
no_access =10.168.0.0
上面两个应该设置为什么才可以允许所有用户访问
xinetd模式原理上应该不需要任何设置就可以允许来自任何IP的连接,HOHO我也不敢轻易下结论,我不是REDHAT用户,就拿安装说明来说吧,作者一直没有更改错误
2c) For anonymous FTP, you will need the user "ftp" to exist, and have a
valid home directory (which is NOT owned or writable by the user "ftp").
The following commands could be used to set up the user "ftp" if you do not
have one:

[root@localhost root]# mkdir /var/ftp/
[root@localhost root]# useradd -d /var/ftp ftp

(the next two are useful to run even if the user "ftp" already exists).
[root@localhost root]# chown root.root /var/ftp
[root@localhost root]# chmod og-w /var/ftp
事实上从源码安装的话目录应该为/var/ftpd真是郁闷死了,
我已经试过 only_from 192.168.1.3 only_from=192.168.1.3还是不行,也许和什么参数冲突了吧。真是见鬼了现在ftp localhost不行了那么only_from参数应该生效了吧,可是……
 楼主| 发表于 2003-9-26 09:56:09 | 显示全部楼层
up
 楼主| 发表于 2003-9-26 10:05:38 | 显示全部楼层
源码编绎时没有这个文件/etc/init.d/里面没有vsftp
哪位用redhat的贴个看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表