0

I am looking for a way to make a simple ftps server that will serve a single folder containing 2 files using a dedicated username:password pair.

The issue is that for security reasons I have two requirements:

  1. The server will not give access (even read) to anything outside the specified folder (server has world readable files that should be only accessible by users having accounts on that server)
  2. I don't want to tie the ftp server with existing users system (the entire ftp application and its config must be independent of the server configuration)

So far every tutorial I found is using pam to configure both vsftpd and proftpd, while I want a simple config file having username:password:folder triplet eg:

backups:s3cr@t:/backups/origin
backups2:secret:/backups/anonymized
documents:secret:/var/www/data/documents

How can I do it with either vsftpd or proftpd?

Castaglia
  • 2,972
  • 5
  • 28
  • 49
HubertNNN
  • 1,727
  • 1
  • 14
  • 29
  • ProFTPD can support such files (with a slightly different format); see http://www.proftpd.org/docs/howto/AuthFiles.html – Castaglia Sep 16 '22 at 22:56

0 Answers0