LinuxSir.cn,穿越时空的Linuxsir!

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

vsftpd紧急问题!

[复制链接]
发表于 2003-9-27 14:41:28 | 显示全部楼层 |阅读模式
1、我需要的ftp是有两个账号:一个匿名账号只能上传,其它权限关闭(这个我会设置了)另外一个有完全权限,于是我就useradd wzdsb / passwd wzdsb / 然后chown wzdsb /var/ftp/pub 这样之后,发现wzdsb在pub里面就是没有下载权限,出现如下代码

Connecting ftp data socket 220.186.122.247:18376...
550 Failed to open file.
ERROR:> Requested action not taken (e.g., file or directory not found, no access).


不知道为什么?

2、我在文章看到这么一段:

user_config_dir
定义个别使用者设定文件所在的目录,例如定义user_config_dir=/etc/vsftpd/userconf,
且主机上有使用者test1,test2,那我们可以在user_config_dir 的目录新增文件名为
test1 以及test2。若是test1 登入,则会读取user_config_dir 下的test1 这个档案内的设
定。默认值为无。

请问可不可以说的再具体点,我很菜很菜。我是这么做的
首先在vsftpd.conf添加
user_config_dir=yes
user_config_dir=/etc/vsftpd/userconf
在vsftpd下面touch userconf
vi userconf
添加
test1
upload_enable=yes
download_enable=yes
最后useradd test1
重起/etc/init.d/vsftpd restart

没什么效果,请问为什么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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