In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to configure Pureftpd on Freebsd. I hope you will get something after reading this article. Let's discuss it together.
# it is forbidden to read some files (the file name is'.' Beginning of the file) (.history, .ssh.)
ProhibitDotFilesRead no
# never overwrite files. Automatically rename the uploaded file when its file name already exists, such as file.1, file.2, file.3,...
AutoRename no
# do not allow anonymous users to upload new files (no = allow upload)
AnonymousCantUpload no
# only non-anonymous users from the following IP addresses are allowed to connect. You can use this instruction to open several public network IP to provide anonymous FTP
# and keep a private firewall-protected IP for remote management. You can also allow only one intranet address for authentication, while in another
# A pure anonymous FTP service is provided on an IP.
# TrustedIP 10.1.1.1
# if you want to add PID to each line of the log, remove the comments from the following lines.
# LogPID yes
# create an additional log file using a format similar to Apache, such as:
# fw.c9x.org-jedi [13/Dec/1975] "GET / ftp/linux.tar.bz2" 200 21809338
# this log file can be processed by www traffic analyzer.
# AltLog clf:/var/log/pureftpd.log
# create an additional log file for the statistical report using the optimized format.
# AltLog stats:/var/log/pureftpd.log
# create an additional log file using the standard W3C format. (compatible with most business log analyzers)
# AltLog w3c:/var/log/pureftpd.log
# do not accept CHMOD commands. Users cannot change the properties of their files.
# NoChmod yes
# allow users to restore and upload files, but not delete them.
# KeepAllFiles yes
# if the user home directory does not exist, it will be created automatically.
# CreateHomeDir yes
# enable virtual disk quota. * the number of numbers is the number of files.
The second number is the total file size of * * (in Mb).
# therefore, 1000 10Mb 10 limits each user to 1000 files, a total of 10 files.
# Quota 1000:10
# if your pure-ftpd compiles with stand-alone server (standalone) support, you can change the pid file
The location of # The default location is / var/run/pure-ftpd.pid.
# PIDFile / var/run/pure-ftpd.pid
# if your pure-ftpd compiles with pure-uploadscript support, this directive will make pure-ftpd
# send information about the new upload to / var/run/pure-ftpd.upload.pipe, so that pure-uploadscript
# can read and then call a script to handle the new upload.
# CallUploadScript yes
# this option is useful for servers that allow anonymous uploads. When / var/ftp is in / var, you need to reserve some disk space
# to protect log files. When the disk partition uses more than one percent of X, new uploads will no longer be accepted.
MaxDiskUsage 99
# if you don't want your user to rename the file, set it to 'yes'.
# NoRename yes
# is the 'customer proof': workspace (workaround) against common customer errors, similar to:' chmod 0 public_html''.
# that's a valid command, but it will lead to ignorant customers ordering their own files that will keep your technical support busy with stupid questions.
# this feature will be of little use if you are sure that all your users have basic knowledge of Unix. However, if you are a hosting provider
# if so, enable it.
CustomerProof yes
# concurrency limit for each user. This directive starts only after you add the-- with-peruserlimits compilation option to compile
# function. (most binary releases are examples.)
# format is:;:
# for example: 3:20 means that the same authenticated user * * can have three processes active at the same time. And there can only be up to 20 anonymous user processes at the same time.
# PerUserLimits 3:20
3. Configure ftpchroot
In / etc/ftpchroot
The following users are generally added:
Root
Toor
Daemon
Operator
Bin
Tty
Kmem
Games
News
Man
Sshd
Bind
Proxy
_ pflogd
_ dhcp
Uucp
Pop
Www
Nobody
Mailnull
Smmsp
Do not allow access to ftp.
4. * * run ftp:
Don't forget to run:
/ usr/local/sbin/pure-config.pl / usr/local/etc/pure-ftpd.conf
And then
More / usr/local/etc/rc.d/pure-ftpd
You will find a note:
# Add the following lines to / etc/rc.conf to enable pure-ftpd:
#
# pureftpd_enable= "YES"
To add the following sentence to rc.conf.
Pureftpd_enable= "YES"
After joining, run:
/ usr/local/etc/rc.d/pure-ftpd start
The service will be up and running.
After reading this article, I believe you have a certain understanding of "how to configure Pureftpd on Freebsd". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.