Setting FTP Access

From Sympl Wiki
Jump to navigation Jump to search

FTP can be set up in a number of ways, for the basic guide, we will look at the already enabled 'sympl' users access, setting up access per domain and then setting per user access for that domain

SSH FTP access

Any 'regular' user set up with an account on sympl, users set up with 'useradd' or 'adduser' command, will be able to connect over sftp by default. This is an ftp session created of ssh and as such carries the encryption of the ssh connection. You can connect using sftp using most FTP clients and you will need the ip address or hostname of the server, username and password. The 'sympl' user that was set up when sympl was installed will be able to connect over sftp.

Per domain access

You can set up ftp access to a domain by adding a file called 'ftp-password' containing the password to the relevent domain's config folder:

/srv/example.com/config/ftp-password

The easiest way to do this is to create the file, connect using SFTP as above with the 'sympl' users credentials, navigate to the remote directory /srv/example.com/config and then upload the file ftp-password. You will then be able to connect using Explicit FTPS to the server using example.com as the username and the password that is in the ftp-password file. The directory path will automatically be set to the public folder of the domain /srv/example.com/public/

Per user domain access

For granting access to individual users to a domain you will need to set up another file called ftp-users. The file needs to be in the same location of /srv/example.com/config/ftp-users

The file needs to be in the following format and comments start with a #:

 # username:password:directory:quota
 babs:babs password:babs:10M

This file will allow access to babs@example.com with the password babs password to the folder /srv/example.com/public/babs/ with a userquota of 10M. The directory must be relative to the public folder of the domain the ftp-users file correlates to, otherwise you will get an authentication error.

For more details on configuring FTP Access, see FTP_Configuration_Reference

See Also