You can configure the proftpd.conf file to create an FTP server. An FTP server lets an authorized user access and interact the FTP server. The proftpd.conf file should be configured to accept a user that is already set up on the computer. For example, if a user with the user name Frankj is set up on the computer, you can run the FTP server as Frankj.
In the following example, the only restriction that is placed on the user is the ability to overwrite files in the default directory. You can create this restriction by using the Limit directive. The default directory is /home/Frankj/. You can configure the proftpd.conf file by typing the values in a text editor. In the proftpd.conf file listed below, all the configured directives appear in bold type.
To create a basic FTP server
1. Click Application Starter, Corel File Manager.
2. Type /etc/ in the Address box.
3. Double-click on proftpd.conf file.
4. Configure the proftpd.conf file.
You can refer to the following proftpd.conf file for a reference.
5. Save the proftpd.conf file.
Notes
After you configure the proftpd.conf file, you must restart the FTP server. For information about restarting the FTP server, see "Starting and stopping the FTP server."
For about saving a file in Corel LINUX, see the Corel LINUX User Guide.
For information about setting up a user on Corel LINUX, see the Corel LINUX User Guide.
In the proftpd.conf file listed below, the "#" symbol indicates a comment.
# This is a basic ProFTPD configuration file. It restricts the user
# from overwriting files in the default directory. The default directory
# for the user, Frankj, is /home/Frankj. You should make sure that
# this file is saved in the /etc/ directory and is named ProFTPD.conf.
ServerName " ProFTPD Corel Server"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User Frankj
Group Frankj
# Restrict the ability to overwrite files in the default directory
<Directory /home/Frankj>
<Limit WRITE>
DenyALL
</Limit>
</Directory>