Linux下怎样将ftp服务的用户名和密码写在配置文件中使得在自动ftp脚本中免去认为输入用户名和密码,该如何解决

Linux下怎样将ftp服务的用户名和密码写在配置文件中使得在自动ftp脚本中免去认为输入用户名和密码
如题

------解决方案--------------------
探讨
3楼,你说的是在自动脚本中手动写上用户名和密码,我需要的是在ftp配置文件中设置用户名和密码,使得在脚本中不必在手动输入。Linux下vsftpd服务的配置文件为./etc/vsftpd/vsftpd.conf。

------解决方案--------------------
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-ftp-vsftpd-conf.html

根据上面的链接,如下两个选项有可能可以实现,不过我没时间测试,还得学习呢,你可以试试:
ftp_username — Specifies the local user account (listed in /etc/passwd) used for the anonymous FTP user. The home directory specified in /etc/passwd for the user is the root directory of the anonymous FTP user. 

The default value is ftp. 

no_anon_password — When enabled, the anonymous user is not asked for a password. 

The default value is NO.