Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure proftpd under Linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to configure proftpd under Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Proftpd is an open source ftp server software. it is an improved version of wu-ftpd, which is the most widely used in the world. it corrects many defects of wu-ftpd and makes significant improvements in many aspects. one of the important changes is that it learns the configuration of Apache and makes the configuration and management of proftpd easier to understand.

Download the proftpd source code

Go to the official website (http://www.proftpd.org/) to download the latest stable version of the source code. The latest stable version is proftpd1.3.3e.

Install proftpd

Check to see if gcc and make are installed, and if not, install them first, and you need to use them when compiling and installing source code. Check to see if proftpd is installed on the Linux server with the command:

# rpm-qa | grepproftpd

If you have installed proftpd and want to use the latest version, you need to download it using the following command:

# rpm-e proftpd.xxx

After decompression, go to the source code directory:

# tar-zxvf proftpd-1.3.3e.tar.gz

# A proftpd-1.3.3.e directory will be generated after decompression.

# cdproftpd-1.3.3e

# Please read the INSTALL in this directory in detail, which contains important information about installation.

Set the parameters before compilation:

#. / configure-prefix=/usr/local/proftpd-enable-shadow-enable-autoshadow\

-with-modules=mod_ratio:mod_readme:mod_wrap

# Please note that prefix identifies the proftpd directory we are going to install, and-enable-shadow is the file that is expected to use the system's / etc/shadow as the password verification file for FTP login! In addition, many modules can be added to make our proftpd more flexible.

Compile and install:

# make & & make install

# after this step, proftpd is installed in the / usr/local/proftpd directory, where etc/proftpd.conf is the configuration file, and the instructions are placed in the / usr/local/proftpd/share/man directory.

# vi / etc/man.config

# add the following line to use man to view the usage of proftpd and add it to the MANPATH location in the configuration file.

MANPATH / usr/local/proftpd/share/man

Join the user

# groupadd ftp

# useradd-d / home/fpt-g ftp-s / sbin/nologin ftp

-d specify the home directory of the newly created user

-g joined group

-s / sbin/nologin specifies that users cannot log in from shell, but can only log in in ftp mode, for security reasons.

Change User and Group in proftpd.conf to ftp,umask to 002.

Modify the permissions of the home directory:

# chown ftp.ftp/home/ftp

# # 4. Start proftpd

Go to the source code command and execute the following command:

# cpcontrib/dist/rpm/proftpd.init.d / etc/rc.d/init.d/proftpd

Edit proftpd, know the PATH line at the beginning of the file line, and modify it to the directory where proftpd is installed, as follows:

# vi/etc/rc.d/init.d/proftpd

PATH= "$PATH:/usr/local/proftpd/sbin:/usr/local/protfpd/bin"

Modify the execution permission of proftpd:

# chmod + x/etc/rc.d/init.d/proftpd

Modify the configuration file to remove comments about the group.

Change to auto-start command:

[root@localhostproftpd-1.3.3e] # chkconfig-level 35 proftpd on

[root@localhostproftpd-1.3.3e] # chkconfig-add proftpd

Start the FTP server:

# service proftpdstart

# # 5. Configuration and commands of Proftpd

1 > proftpd.conf is the configuration file and the directory is etc/proftpd.conf

2 > proftpd is the proftpd daemon execution file. Command format

# proftpd-c

3 > ftpcount is the number of connections that display the proftpd used on the host.

4 > ftpshut: specify how long after the proftpd service is terminated.

5 > ftpwho can be used to see how many people currently use proftpd as a server.

Thank you for reading this article carefully. I hope the article "how to configure proftpd under Linux" 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report