pure-pw useradd test -u ftpuser -d /home/ftpuser/joe
./pure-ftpd -A -c50 -B -C3 -D -E -fftp -H -I0 -L2000:8 -m4 -s -U133:022 -u100 -j -k99 -y3:20 &
启动后,无法用test登陆,说验证失败...
大家有类似的经验吗,谢谢了作者: hijackgoodbye 时间: 2006-04-16 13:09
可以进入输入用户名和密码的框,也就是telnet 21,22没问题,pureftpd.passwd也有用户的信息...作者: hijackgoodbye 时间: 2006-04-17 09:48
上面的问题已经解决,自己防火墙规则设置错误,并且要用-l参数指定数据库,请教为什么我用了-j参数,用户自己登陆不会自动创建根目录呢,需要手动创建才可以作者: hijackgoodbye 时间: 2006-04-17 12:18
chmod 755 /home/ftpuser还是不行,一定要在ftpuser下手动创建该用户目录才可以登陆...作者: hijackgoodbye 时间: 2006-04-17 13:08
有人帮忙吗?谢谢了作者: hijackgoodbye 时间: 2006-04-17 13:22
331 User fgn OK. Password required
Password:
421 Home directory not available - aborting
Connection closed by remote host.
报错信息作者: wolfg 时间: 2006-04-17 13:33 Home directory not available
很明显,登录用户的主目录不存在作者: hijackgoodbye 时间: 2006-04-17 13:38
是呀,我在启动pure-ftpd时使用了-j选项呀,可他不会自动创建/home/ftpuser/fgn这个目录呀,必须要手动创建该目录才可以登陆....
- '-j': If the home directory of a user doesn't exist, automatically create
it. The newly created home directory belongs to the user and permissions are
set according to the current directory mask. Only the home directory can be
created (so /home/john/./public_html won't work, but /home/john will) . To
avoid local attacks, the parent directory should never belong to an untrusted
user. Also note that you must trust whoever manages the users databases,
because with that feature, he'll be able to create/chown directories anywhere
on the server's filesystem.