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 introduces the relevant knowledge of "how to install and use ProFTPd under CentOS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Installation:
Install the EPEL package
The code is as follows:
Rpm-Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
YUM install ProFTPd
The code is as follows:
Yum install proftpd
PS: the method of compiling and installing ProFTPd
The code is as follows:
Wget ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.proftpd.net/distrib/source/proftpd-1.3.1.tar.gz
Tar xzvf proftpd-1.3.1.tar.gz
Cd proftpd-1.3.1
. / configure-- with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql\
-- with-includes=/usr/include/mysql\
-- with-libraries=/usr/lib/mysql
Make & & make install
Set up boot boot
The code is as follows:
Chkconfig-level 3 proftpd on
ProFTPd Management:
Start
The code is as follows:
Proftpd:service proftpd start
Stop it
The code is as follows:
Proftpd:service proftpd stop
Restart
The code is as follows:
Proftpd:service proftpd restart
Heavy load
The code is as follows:
Proftpd:service proftpd reload
Configuration file / etc/proftpd.conf, you can check whether the syntax is correct through the proftpd-T6 instruction.
Add ftp users and user groups
The code is as follows:
Groupadd-g 5500 ftpgroup
Adduser-u 5500-s / bin/false-d / bin/null-c "proftpd user"-g ftpgroup ftpuser
Add a virtual user
First we need to set up the configuration file / etc/proftpd.conf.
Add the following code to the configuration file:
The code is as follows:
AuthUserFile / etc/ftpd.passwd
AuthGroupFile / etc/ftpd.group
Turn off detection / etc/shells:
The code is as follows:
RequireValidShell off
Set to use only virtual user authentication:
The code is as follows:
AuthOrder mod_auth_file.c
Prohibit PAM authentication:
The code is as follows:
PersistentPasswd off
AuthPAM off
Restrict the change of the root directory:
The code is as follows:
DefaulRoot ~
After setting up the configuration file in accordance with the above requirements, we use the ftpasswd tool to add virtual users, and first download the tool.
The code is as follows:
Cd / usr/sbin/
Wget http://www.castaglia.org/proftpd/contrib/ftpasswd
Chmod + x ftpasswd
The format of the ftpasswd tool is as follows:
The code is as follows:
# ftpasswd-passwd-name {username}-file / etc/ftpd.passwd-uid {5000}-gid {5000}-home/ var/ftp/username-home/-shell / bin/false
# ftpasswd-group-name group1-file / etc/ftpd.group-gid 5000-member username
This is the end of "how to install and use ProFTPd under CentOS". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.