configuration没有系统用户的Proftpd用户

我在FreeBSD 9上用proftpd运行一个web服务器。

我想添加几个ftp用户到服务器,以便他们可以select上传文件到自己的网站。

当试图用proftpd来做到这一点时,我需要使用系统的adduser命令来首先在系统中创build用户。

有什么办法可以避免吗?

我读了关于虚拟用户,但我似乎无法find任何指导一步一步configuration它

谢谢

以下是他们网站上的指南: http : //www.proftpd.org/docs/howto/VirtualUsers.html 。

简单的FTP站点

 <VirtualHost ftp.example.net> # Common settings ServerName "ftp.example.net" DefaultRoot ~ DefaultServer on Umask 002 Protocols ftp Port 21 # Specify where the server should find our users AuthOrder mod_auth_file.c* AuthUserFile /etc/proftpd/virtual_users.passwd home ^/vhosts/example.net # Only users alex and john will be able to login <Limit LOGIN> AllowUser alex john DenyAll </Limit> </VirtualHost> 

创build虚拟用户

 # ftpasswd --passwd --file /etc/proftpd/virtual_users.passwd --sha512 --gid 99 --uid 99 --shell /sbin/nologin --name alex --home /vhosts/example.net/site1/public_html # ftpasswd --passwd --file /etc/proftpd/virtual_users.passwd --sha512 --gid 99 --uid 99 --shell /sbin/nologin --name john --home /vhosts/example.net/site2/public_html