Figure-ProFTPD
Proftpd. confSettings for anonymous users
After the actual user experience is completed, let's make a try. How can we set the logon permission limit for anonymous ?! Our requirements are as follows:
The requirements of the host environment and the real-world environment are the same as those above;
The root category of anonymous is/var/ftp;
The PID obtained after anonymous login is Linux's privilege limited to ftp: ftp;
After anonymous logs on to FTP, some welcome messages are displayed in the FTP console of the Client !;
Up to 30 anonymous logins are allowed;
The upper/lower limit speed is 100 Kbytes/s and 50 Kbytes/s;
In/var/ftp/, other contents except/var/ftp/upload cannot be included;
In the/var/ftp/upload project, the region can be imported, but cannot be downloaded, and after the user enters the project, shows some related information;
Because nogoodbird is not good, set their FTP permission limit to "anonymous!
How to Set it ?! We will keep the settings above, and then add the lower ones!
1. establish basic design cases:
[Root @ test root] # vi/usr/local/proftpd/etc/proftpd. conf
# The settings of the host and the actual user are shown in the previous one, so I have skipped the settings here!
).....
# Next is the setting of anonymous!
# Create a PID permission limit for the Anonymous Linux system!
# In addition, use UserAlias to downgrade nogoodbird to anonymous users of anonymous!
User ftp
Group ftp
UserAlias anonymous ftp
UserAlias nogoodbird ftp
# Create an alarm message for anonymous observation!
DisplayLogin welcome. msg
DisplayFirstChdir. message
MaxClients 30 "the number of anonymous logon users has been reached! "
# This is important! It is used to limit the shard speed! The basic rule is:
# TransferRate (STOR | RETR) speed (Kbytes/s) user
# STOR indicates the upper limit and RETR indicates the lower limit! The speed is Kbytes/second!
TransferRate STOR 100 user anonymous, ftp # The unit is KBytes/second
TransferRate RETR 50 user anonymous, ftp
Denyall
# The following rule is related to the upload object and its subtopics!
Denyall
Allowall
2. Create a welcome face:
# Note that because my anonymous root targets are in/var/ftp
# Welcome. msg must be placed in/var/ftp/welcome. msg!
[Root @ test root] # vi/var/ftp/welcome. msg
Welcome! This is the FTP site of dongge!
My host: % L
Current Time: % T
Maximum memory usage: % M
Current quota limit: % N
Your host: % R
Your bandwidth usage: % U
Current category: % C
3. Set up special considerations:
# Setting up a special response message in/var/ftp/upload!
[Root @ test root] # vi/var/ftp/upload/. message
This category cannot be downgraded;
Your identity is anonymous!
4. Create an upload permission:
[Root @ test root] # chown ftp: ftp/var/ftp/upload
[Root @ test root] # chmod 755/var/ftp/upload
5. Repeat the operation!
[Root @ test root] #/etc/rc. d/init. d/xinetd restart
Haha! In this way, you have set your Anonymous! When you get in, wow! How is it so good! You have already set up all your resources for him. It is really not easy to welcome! Pai_^
Through the five main points in the article, we can clearly understand proftpd. the anonymous setting of conf is quite simple. Follow the steps above to complete the settings step by step. I hope this article will help you!
- Proftpd. conf settings for entity users
- Proftpd. conf setting method
- The simplest Proftpd. conf configuration file
- Install, configure, and manage proftpd in Linux
- ProFtpd Getting Started Guide
- Start ProFTPD)
- Install ProFTPD)
- Configure ProFTPD)