How to configure proFTD

Source: Internet
Author: User

 1. Install proftpd Software

Download the next package from the official website.

Tar zxvf proftpd-1.3.1.tar.gz

Decompress the package

Cd proftpd-1.3.1 into folder

./Configure -- prefix =/etc/proftpd install the proftpd-1.3.1 under the/etc/proftpd folder

Make

Make install

Make clean

2. Create a user

Groupadd proftp create a proftp Group

Useradd-g proftp-d/var/ftp/yatan-s/sbin/nologin yatan my understanding is (create a yatan user and add it to the proftp group, create the yatan directory in the/var/ftp directory and specify its shell as nologin. This nologin does not allow yatan users to access the linux system.

Passwd yatan: Set the yatan password.

Okay, the user has set it :)

3. Configure the operations before the proftpd. conf file:

1. Because I use the Red Hat as4.0, I need to stop the built-in vsftpd.

Service vsftpd stop or directly rpm-e vsftpd

2. Set a proftpd startup Service

Edit a STARTUP script,

The cd proftpd-1.3.1 enters the extract folder of the proftpd-1.3.1

Cp contrib/dist/rpm/proftpd. init. d/etc/rc. d/init. d/proftpd copy proftpd. init. d to/etc/rc. d/init. d folder and rename it proftpd

Vi/etc/rc. d/init. d/proftpd edit the file, find a PATH line in the file, and change it to the directory where your installed proftpd is located.

PATH = "$ PATH:/etc/proftpd/sbin:/etc/proftpd/bin" I installed it in the/etc/proftpd file. Save and exit.

3. Set/etc/rc. d/init. d/proftpd to an executable file.

Chmod + x/etc/rc. d/init. d/proftpd

# Run the following command:

[Root @ localhost/] # chkconfig -- level 35 proftpd on

# Then, after the next system is started, proftpd will automatically start.

Chkonfig-add proftpd

In this way, you can use service proftpd start, service proftpd stop, and service proftpd restart to start, stop, and restart services respectively.

I almost forgot to change the configuration file.

Vi/etc/proftpd. conf

In the global configuration, change the group value to nogroup to nobody.

Now, the configuration is complete.

4. Modify/var/ftp directory permissions

Chmod-R 775/var/ftp

In this way, tc has all the permissions to write, delete, modify, and execute/var/ftp/skate files.

  1. Install and configure proftpd in CentOS
  2. ProFTPD mod_tls module ca ssl certificate verification vulnerability
  3. Experiences in establishing secure ProFTPD in Linux
  4. ProFTPD STAT Command Remote Denial of Service Attack Vulnerability
  5. ProFTPD character encoding SQL Injection Vulnerability

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.