image\overbutt.gifCreating an Anonymous FTP server

You can configure the proftpd.conf file to create an anonymous FTP server. An anonymous server is for users who do not have an authorized user account on the local computer. For example, you can create an anonymous FTP server to let users login and download shareware. It is strongly recommended that you implement security measures when you set up an anonymous FTP server.

You should set up an anonymous user account on the local computer. For information about setting up a user account on Corel LINUX, see the Corel LINUX User Guide.

The example below sets up an anonymous FTP server. The user name is anon. The User and Group directives are set to anon. You can use the Limit directive to restrict an anonymous user from overwriting, deleting, or having full access to the files on your computer. In the following example, the anonymous user cannot change the working directory, delete, or overwrite files. The anonymous user can only download files. 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 values appear in bold type.

To create an anonymous 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.

image\nicon.gif Notes

# This is a basic ProFTPD configuration file that support an anonymous

#.user. The anonymous user is restricted from changing the working directory,

# deleting files or overwriting files. 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>

 

# SET UP THE ANONYMOUS FTP SERVER

<Anonymous /home/anon/>

User anon

Group anon

 

# We want clients to be able to login with "anonymous" as well as "ftp"

UserAlias anonymous ftp

 

# Limit the maximum number of anonymous logins

MaxClients 10

 

# Create the default directory for the anonymous FTP server

<Directory /home/anon/> 

 

# Restrict ability to overwrite files in the working directory

<Limit WRITE>

DenyAll

</Limit>

 

# Restrict ability to change the working directory

<Limit CWD>

DenyAll

</Limit>

 

# Restrict ability to delete files in the working directory  

<Limit DELE>

DenyALL

</Limit>    

</Directory>

</Anonymous>