我想要一个FTPd在我的服务器上运行,用一个简单的方法来设置用户/目录。 我不需要MySQL,匿名访问,本地用户等。最好是用户设置将是一个类似的文件
username 1 password hash /root/dir username 2 password hash /root/dir username 3 password hash /root/dir
什么是虚拟用户设置FTPd最简单的方法?
ProFTPd提供您请求的这样的事情:
ProFTPD allows for the definition of "virtual" users: users who do not have accounts on the host machine, whose account information is defined in other sources. The passwords for these users are then specific only to FTP access, and thus do not expose shell access (ssh, hopefully) to unauthorized users. These alternative account information sources include SQL tables (via mod_sql), LDAP servers (via mod_ldap), CDB files (via mod_auth_cdb), and other system files (via the AuthUserFile and AuthGroupFile configuration directives). The proftpd server can be configured to use multiple account information sources simultaneously as well, allowing for flexible support of a range of environments.
我个人使用的是ProFTPd的mod_sql插件,以避免使用OS用户进行FTP访问。 在这里你可以find更多的信息,如果它适合你这个解决scheme:
ProFTPdauthentication虚拟
ProFTPd AuthFiles
看看这篇文章。 它包含用虚拟用户设置VSFTPD的信息。 谷歌search“+ linux + ftp +虚拟用户”也给了很多select,你可以尝试。