Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want an FTPd running on my server, with an easy way to setup users/directories. I don't need MySQL, anon access, local users etc. Preferably the users setup would be a plain file with something like

username 1        password hash         /root/dir
username 2        password hash         /root/dir
username 3        password hash         /root/dir

What's the fastest easiest way to setup FTPd with virtual users?

share|improve this question

2 Answers 2

ProFTPd offers such thing as you request:

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.

I personally was using mod_sql plugin fro ProFTPd to avoid using OS users for FTP access. Here you can find more information if it will suits you this solution:

ProFTPd Authentication virtual

ProFTPd AuthFiles

share|improve this answer

have a look at this article. It contains information to setup VSFTPD with virtual users. A google search on "+linux +ftp +virtual users" also gives a lot of options you can try out.

share|improve this answer
    
"[..] enabled local access which we need for virtual users" :-( I would really prefer not to have local access enabled –  Znarkus Jan 30 '12 at 11:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.