Linux FTP Service Configuration
Disclaimer: the article is applicable to the Standard Linux Shared Hosting, not to Linux Shared Hosting NG. Refer to the article https://kb.odin.com/en/114326 for information about Linux Shared Hosting NG in POA.
The FTP service is used in POA for the following purposes:
- Upload data into customers' websites
- Provide Linux File Manager service
- Provide access to Apache log files in a customer's webspace
POA is using ProFTPD software for FTP service. Single Linux server may be used for web and FTP hosting in POA.
Like in case with Apache service POA-managed ProFTPD server uses non-default configuration file /usr/local/etc/proftpd.conf which includes the /usr/local/etc/proftpd.conf.pem configuration file which in turn includes the /usr/local/etc/proftpd_vhost_confs_pem/VHOST_ID file, where SERVICE_ID is internal ID of ProFTPD virtual host in POA.
The following files store information about FTP users and group membership:
It is advised to look into them in case of problems with FTP users authentication.
If a customer has FTP hosting resource in their subscription POA automatically creates the default FTP user for a webspace and includes it into the pemcln group to provide access to webspace data (all folders were customer's data are stored belong to the pemcln group). The user name is automatically generated as 'fWEBSPACE_ID' where WEBSPACE_ID is the ID of a customer webspace, e.g. f100101. A customer may create additional FTP users if they have corresponding resource 'Custom FTP Users' in their subscription.
A typical entry in the passwd file used by ProFTPD service looks like follows:
As it may be seen in the example above home folder of the user f100980 is corresponding webspace 100980. The user is member of the group #10003 which is pemcln group.
The ProFTPD service uses the startup file /etc/init.d/proftpd.
FTP service log is located at /usr/local/pem/ftp/ftp_log/VHOST_ID/xferlog, it is advised to look into it for problems troubleshooting.
FTP service is provided by the resource based on the 'ProFTPD domain services' resource class. It defines available types of FTP access to a customer's webspace:
- Shared IP address
- Exclusive IP with or without anonymous access
It also defines how many FTP user a customer may create for their webspace, the 'Custom FTP Users' parameter.
See the main Knowledgebase article #115790 Website Hosting: General information, Best Practices and Troubleshooting for more information.