ftp如何设置

我的目标机想设置成server,其他Client可以通过FTP访问它,需要如何设置?
我用以下方法,在QNX下可以,是缺少了什么文件吗?
1.用PASSWD aa设置用户名和密码
2.inetd

先需要在目标机内准备好这些文件:
/etc/inetd.conf --里面要允许ftp服务
/etc/passwd
/etc/shadow
/etc/ftpusers --禁止了某些用户登录ftp
/etc/services --设置ftp监听哪个端口
/usr/sbin/ftpd --在inetd.conf要设定好这个文件的路径,此文件应有x属性

按照你的方法设置了,在其它启动FTP访问目标机时报错连接不上,提示是“421 service not avaliable,remote server has closed connecttion”,ping可以通,另外如果在目标机上访问其他的FTP站点也可以访问,请帮助分析一下好吗

http://www.qnx.com/developers/docs/momentics621_docs/neutrino/utilities/f/ftpd.html

里面有“User authorization”一段,讲了你还要设定什么。估计你缺了/etc/shells。

  1. The username must be in the password database /etc/passwd and must not have a null password. The client must provide a password before any file operations may be performed.

  2. The username must not appear in the file /etc/ftpusers, which contains a list of users who aren’t allowed to use ftp. One username is listed per line. If this file is missing, anyone on the local system may access ftp.

  3. The user must have a standard shell (i.e. one listed in /etc/shells).

  4. If the username is anonymous or ftp, an anonymous ftp account must be present in the password file (user ftp). In this case, the user can log
    in by giving any password (by convention, users give the name of the
    client host).

我已经加了以上所说的所有文件,可是login时老是登录不上去,报的错误是“530 login incorrect”,难道server端找不到我登录的用户,可是在其/etc/passwd中明明有呀,怎么办呀?急。。。

好象就是password检查出错,你可以telnet 进去吗?