FTP Configuration Reference

From Sympl Wiki
Revision as of 10:52, 16 July 2019 by Kelduum (talk | contribs)
Jump to navigation Jump to search

FTP configuration for Sympl can be one of two methods, either authenticating against the domain (example.com) with full access, or authenticating as a user on the domain (user@example.com) which supports limited access.

Domain Authentication

The most basic method of authentication provides access to the /srv/example.com/public/ directory and it's contents, but no directories above that.

To enable this, simply add a password in /srv/example.com/config/ftp-password either in plain text or as a hashed password (generated using sympl-encrypt-password).

Users can then log in to the server using an FTP client using any hostname or IP which points to the server, with the username example.com and password as set in config/ftp-password.

Multi-User Authentication

The multi-user authentication method supports users with separate directory access and quotas, and is controlled with the /srv/example.com/config/ftp-users file, and again has access limited to /srv/example.com/public/.

The format of the config/ftp-users file is as follows:

# comments start with a hash
username:password:subdirectory:quota