Puref-ftpd installation and configuration tutorial in ubuntu

Source: Internet
Author: User
Tags md5

1. Install pureftpd

Sudo apt-get install pure-ftpd

Sudo apt-get install pure-ftpd-mysql

2. Create a database and store an ftp user table

Create table 'users '(
'User' VARCHAR (16) not null default '',
'Password' VARCHAR (64) not null default '',
'Uid' VARCHAR (11) not null default '-1 ',
'Gid' VARCHAR (11) not null default '-1 ',
'Dir' VARCHAR (128) not null default '',
'Comment' tinytext not null,
Primary key ('user '),
Unique key 'user' ('user ')
) ENGINE = MyISAM default charset = utf8 COMMENT = 'ftp user'

3. Configuration

Edit/etc/pure-ftpd/db/mysql. conf

# MYSQLServer localhost
# MYSQLPort 3306
MYSQLUser pureftpd
MYSQLPassword ftpdpass
MYSQLDatabase pureftpd
# MYSQLCrypt md5, cleartext, crypt () or password ()-md5 is very recommendable uppon cleartext
MYSQLCrypt md5

4. Some configurations

// Restrict users to their home directories

Echo "yes">/etc/pure-ftpd/conf/ChrootEveryone
Echo "no">/etc/pure-ftpd/conf/AnonymousOnly

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.