Linux下怎样将ftp服务的用户名和密码写在配置文件中使得在自动ftp脚本中免去认为输入用户名和密码,该如何解决
Linux下怎样将ftp服务的用户名和密码写在配置文件中使得在自动ftp脚本中免去认为输入用户名和密码
如题
------解决方案--------------------
------解决方案--------------------
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.
如题
------解决方案--------------------
------解决方案--------------------
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.