ProFTPDIt is the most popular FTP server software After Wu-FTP. To use Proftpd, we must learn its common configurations. This article describes: anonymous users.
Objectives:
The root directory of anonymous is/var/ftp;
The PID obtained after anonymous Logon has the ftp: ftp permission in Linux;
After anonymous logs on to FTP, some welcome messages are displayed on the FTP software of the Client;
Up to 30 anonymous logins are allowed;
The upload/download speed is limited to 100 Kbytes/s and 50 Kbytes/s;
In/var/ftp/, other directories except/var/ftp/upload cannot be written;
In the/var/ftp/upload directory, only data can be written and cannot be downloaded. After the user enters this directory, related information is displayed;
Create a basic archive:
# Vi/usr/local/proftpd/etc/proftpd. conf
# Host and entity user settings
ServerName "Proftp host used for testing"
ServerType standalone
DefaultServer on
Port 21
User nobody
Group nobody
TimesGMT off # The GMT time is Greenwich Mean Time. It is set to off because local time is used.
MaxInstances 50 # Up to 50 prftpd PIDs
MaxClients 100 "sorry, the number of online users is full" # Up to 100 users can be online
MaxClientsPerHost 5 # A maximum of five FTP connections can be established on the same host.
AllowStoreRestart on # allow the user to upload the resume! The default value is off.
PassivePorts 65400 65420
# Anonymous settings
# Create the PID permission owner of Anonymous in Linux
User ftp
Group ftp
UserAlias anonymous ftp
UserAlias nogoodbird ftp
# Create a displayed message for anonymous observation!
DisplayLogin welcome. msg
DisplayFirstChdir. message
MaxClients 30 "the number of Anonymous logins is saturated! "
# This is important! Used to limit the transmission rate! The basic syntax is:
# TransferRate (STOR | RETR) speed (Kbytes/s) user
# STOR indicates that the object is uploaded and RETR indicates the object to be downloaded! The speed is Kbytes/second!
TransferRate STOR 100 user anonymous, ftp # Unit: KBytes/second
TransferRate RETR 50 user anonymous, ftp
Denyall
# The following is only related to the upload directory and Its subdirectories!
Denyall
Allowall
Create a welcome screen:
Note: If the anonymous root directory is in/var/ftp, welcome. msg must be placed in/var/ftp/welcome. msg
# Vi/var/ftp/welcome. msg
Welcome! This is a test FTP site!
My host: % L
Current Time: % T
Max online: % M
Currently online: % N
Your host: % R
Your account: % U
Current Directory: % C
Note:
A special message needs to be created in/var/ftp/upload.
# Vi/var/ftp/upload/. message
This directory can only be uploaded and cannot be downloaded,
Your identity is anonymous!
Create the upload permission:
# Chown ftp: ftp/var/ftp/upload
# Chmod 755/var/ftp/upload
Restart!
# Service proftpd restart
According to the description in this article, we have learned about the common proftpd configuration: anonymous users.
- Local user of Proftpd Configuration
- Common Proftpd Parameters
- Proftpd. conf setting method
- Features of ProFTPD
- Main features of ProFTPD
- ProFTPD operation process
- Gentleman LAN ProFTPD in FTP Server