How to install pureftpd In Debian

Source: Internet
Author: User

PureftpdIt is an FTP program software. I have used it for a while and have some experiences. I will share it with you!DebianThe installation of pureftpd is as follows:

1. Installation (I use unstable)

Apt-get install pure-ftpd-common

2. Create a virtual user

It is not a problem to create a common user. It should be noted that the current pure-ftpd configuration method has changed, not to use pure-ftpd.conf to configure, but to use the pure-ftpd-wrapper method, you can look at man pure-ftpd-wrapper, The main change is to the original pure-ftpd.conf of each command into a file with only one line of code, go to/etc/pure-ftpd/conf/and check it out.

Although the configured pureftpd is started, there are no available users and it cannot be logged on (by default, anonymous logon is not allowed ). For this reason, see readme.w.al-users.gz to create a virtual user as follows:

1) groupadd ftpgroup

Useradd-g ftpgroup-d/dev/null-s/etc ftpuser

This step mainly creates a system user for all virtual users;

2) use the virtual user management command pure-pw to create a virtual user:

Pure-pw useradd joe-u ftpuser-d/home/ftpusers/joe a virtual user of joe is created here, and the main directory is under/home/ftpusers/joe. Change-d to-D to allow users to access the entire file system. You can also set a lot of things here, such as limiting the access ip address, quota... and then you can use the pure-pw usermod command to modify it; Delete the user using pure-pw userdel joe.

3. Make the virtual user take effect

Use pure-pw mkdb to create an Authentication database. A pureftpd. pdb file is generated under/etc/pure-ftpd. Note the following steps: I 've been here for a long time: pure-ftpd does not know how to use pureftpd. pdb file to perform user authentication, go to the/etc/pure-ftpd/auth directory and check that there are two files 65unix and 70pam, which is the authentication method used by pure-ftpd, you need to add a 60 pdb connection file to tell pure-ftpd to use pdb authentication, ln-s .. /conf/PureDB 60pdb, 60 before 60pdb can also use other numbers smaller than 65, whatever you like. This number should be the order in which pure-ftpd chooses the authentication method. You can change it to 75pdb, and then look at it: you will find it much slower to log in. You can use joe to log on without restarting. After you add a new user, you only need to add a-m to it. pure-pw useradd newuser-m does not need to restart pure-ftpd.

4. Several Questions

1) I changed/etc/pure-ftpd/conf/NoAnonymous to no, but I could not log on anonymously. What is the reason for "Unable to setup secure anonymous FTP? Are other settings required?

2) How do virtual users Set directory permissions? Because it is not a system user, it cannot be set with chown or chmod?

Hope you can discuss it actively :)

The problem of anonymous logon is solved.

You must create an ftp user in the system, and change/etc/pure-ftpd/conf/NoAnonymous to no.

I am doing this: useradd ftp-g ftpgroup-d/yourftpdir-s/etc

Through the introduction of this article, you can try it yourself. In fact, Debian's pureftpd installation is quite simple!

  • Installation and configuration of PureFTPd in Linux)
  • Installation and configuration of PureFTPd in Linux)
  • Combined Use of Pureftpd and PostgreSQL
  • Pureftpd command syntax
  • Virtual user support for Pureftpd Configuration
  • Pureftpd configuration for real users
  • Anonymous user login for Pureftpd Configuration

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.