In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to set up proftpd.con for Anonymous, which has certain reference value. Interested friends can refer to it. I hope you can learn a lot after reading this article. Let's take a look at it.
Figure-ProFTPD
Proftpd.conf settings for anonymous
After the actual usage, let's have a chat, so how to set the login rights of anonymous? Our requirements are assumed to be as follows:
The requirements for host environment and physical usage are the same as above.
The root of anonymous is / var/ftp this directory
After anonymous logs in, PID's rights in Linux are limited to the character ftp:ftp.
After anonymous logs in to FTP, the FTP app on Client shows some welcome messages!
Allow up to 30 anonymous logins
Limit upload / download speed to 100Kbytes/s and 50 Kbytes/s
On the / var/ftp/ side, no directories can be loaded except / var/ftp/upload
In the / var/ftp/upload directory, you can only import, not download, and after the user enters this directory, some related information is displayed.
Users think that nogoodbird is not well-behaved, so they downgrade their right to use FTP and set it to anonymous!
How to set it?! We will continue to use the above settings, and then add the following items!
1. Create a basic profile:
[root@test root] # vi / usr/local/proftpd/etc/proftpd.conf
# the settings for host and actual users are as shown in the previous note, so I'll skip it here!
... Follow the settings of the previous one, which is omitted here.
# below are the settings of anonymous!
# below are those who have PID permissions for establishing Anonymous under the Linux system!
# in addition, use UserAlias to downgrade nogoodbird to anonymous account!
User ftp
Group ftp
UserAlias anonymous ftp
UserAlias nogoodbird ftp
# create the message shown for anonymous inspection!
DisplayLogin welcome.msg
DisplayFirstChdir .message
MaxClients 30 "the number of anonymous logins has been reconciled!"
# this is important! The device used to limit the transfer rate! The basic rules are as follows:
# TransferRate (STOR | RETR) Speed (Kbytes/s) user user
# STOR for upload and RETR for download! Speed is Kbytes/second!
TransferRate STOR 100 user anonymous,ftp # unit is KBytes/second
TransferRate RETR 50 user anonymous,ftp
Denyall
The policy below is only related to the upload directory and its subdirectories!
Denyall
Allowall
two。 Establish the "welcome" side:
# especially note that since my anonymous root directory is located in / var/ftp, my
# welcome.msg must be placed on / var/ftp/welcome.msg!
[root@test root] # vi / var/ftp/welcome.msg
Welcome the light! This is my brother's test FTP platform!
My host:% L
Current time:% T
* connection:% M
Current connection:% N
Your host:% R
Your account:% U
Current directory:% C
3. Establish special attention items:
# customers mentioned the need to create a special message on / var/ftp/upload profile!
[root@test root] # vi / var/ftp/upload/.message
This account can only be uploaded, not uploaded.
Your identity is anonymous!
4. Rights to establish upload:
[root@test root] # chown ftp:ftp / var/ftp/upload
[root@test root] # chmod 755 / var/ftp/upload
5. Restart!
[root@test root] # / etc/rc.d/init.d/xinetd restart
He he! This will set up your Anonymous! As soon as you enter the station, wow! How great it is! Your information has been set up for him, the welcome face is really good! ^ _ ^
Thank you for reading this article carefully. I hope the article "how to set up proftpd.con for Anonymous" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.