Build the Pure-ftpd service on Ubuntu

Source: Internet
Author: User
Write only step 1. Run sudoapt-getinstallpure-ftpd-mysql, if mysql is not installed, run the sudoapt-getinstallpure-ftpd-mysqlmysql-server2, sudouseradd-u2001-s/bin/false-d/dev/null-c "Pure-FTPdUser"-gftpgroupftp

Write-only steps

1. Run sudo apt-get install pure-ftpd-mysql. If mysql is not installed, run sudo apt-get install pure-ftpd-mysql-server.

2. sudo useradd-u 2001-s/bin/false-d/dev/null-c "Pure-FTPd User"-g ftpgroup ftpuser

3. sudo sh-c "echo 'yes'>/etc/pure-ftpd/conf/ChrootEveryone" trapped all FTP users in this directory.

4. sudo sh-c "echo 'no'>/etc/pure-ftpd/conf/CreateHomeDir"

5. Create mysql database ftpusers and data table for Pure-ftpd

Create table if not exists 'users '(
'User' varchar (20) not null,
'Password' int (64) not null,
'Uid' int (11) not null,
'Gid' int (11) not null,
'Dir' varchar (128) not null,
'Quotafiles' int (11) not null,
'Quotasize' int (11) not null,
'Ulbandwidth' int (11) not null,
'Dlbandwidth' int (11) not null,
'Ipaddress' varchar (15) not null,
'Comment' tinytext not null,
'Status' char (1) not null,
'Ulratio 'smallint (5) not null,
'Dlratio 'smallint (5) NOT NULL
) ENGINE = MyISAM default charset = utf8;

6. Restart pure-ftpd.

Sudo/etc/init. d/pure-ftpd-mysql restart

7. Install user manager for pureftpd

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.