The application of PURE-FTPD in Enterprise network

Source: Internet
Author: User
Tags command line ftp log mysql openssl library mysql database

The PURE-FTPD is a free (BSD), secure, high-quality and compliant FTP server. Focus on operational efficiency and ease of use. It provides a simple answer, he meets the popular needs, including ordinary users and host suppliers. PURE-FTPD has been fully supported, it is always in the concept of security design, its code is always as a loophole to discuss and review. This service can be adapted to strict security needs to do separation of permissions. The chroot () emulation and virtual account 100% are run correctly even without the need for root permissions. Avoid passwords being transmitted as plaintext: PURE-FTPD's OpenSSL library supports optional SSL/TLS encryption layer usage.

Although the author succeeded, but there are many questions, hope high expert advice

Help: The author of this case is very silent, the author in accordance with the original construction method, the use of web-style to create virtual users, test host command line (FTP has been unable to log in,

Prompt for authentication failed, virtual users created using the following commands can log in, but there are no virtual user records in the MySQL database:

[Root@lyt bin]# pure-pw useradd userx-u virtualftp-g virtualftp-d/ftproot/userx–m

[Root@lyt bin]# PURE-PW mkdb/usr/local/pureftpd/pureftpd.pdb

The second time the author has not carried out the eighth step, namely "eight: local user to the virtual user mapping:". Virtual users created using the Web can be on the test host's command line (FTP and logged in the MySQL database.

Case: Build lamp environment on Linux, manage pure-ftpd users through web

The source code used are:




[Root@lyt ~]# Mkdir/mnt/cdrom

[Root@lyt ~]# mount/dev/cdrom/mnt/cdrom/

[Root@lyt ~]# cd/mnt/cdrom/server/

[Root@lyt server]# Vim/etc/yum.repos.d/rhel-debuginfo.repo

One: to build the lamp environment:

[Root@lyt server]# yum install httpd php php-mysql mysql mysql-server mysql-devel-y #搭建lamp环境所需要的软件包

[Root@lyt server]# service httpd start

[Root@lyt server]# chkconfig httpd on #设置开机自动启动

[Root@lyt server]# Service mysqld start

[Root@lyt server]# chkconfig mysqld on #设置开机自动启动

[Root@lyt server]# mysqladmin-u root-p password "123" #为mysql设置root账户的登录密码为123

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: 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.