Configure PROFTPD in Linux system to build FTP server steps

Source: Internet
Author: User

The actual use of FTP tools, need to do in the Linux configuration, the original use of VSFTPD, the results of a variety of problems, finally selected PROFTPD This tool, configuration is directly available.

All of the following actions need to be switched to the root user operation!

Update source and Installation PROFTPD

Update Source:

sudo apt-get update

Install PROFTPD:

Apt-get Install PROFTPD

Adding FTP Groups and users

To add a group:

Groupadd FTPG

To create an FTP user:

Useradd ftpu-d/home/ftpu/-G FTPG

Set Password

passwd FTPU

After the creation is complete, you need to modify the permissions to access the FTP directory only:

Vi/etc/proftpd/proftpd.conf

Remove the comment before the following line #

# defaultroot ~

Prevent users from using terminal logins such as SSH

Edit:

vi/etc/passwd
Will

Ftpu:x:1006:1004::/srv/ftp/:/bin/sh

Modified into

Ftp:x:107:65534::/srv/ftp:/sbin/nologin

Next:

Vi/etc/shells

At the end of the file, add:

/sbin/nologin

Restart the PROFTPD service:

/ETC/INIT.D/PROFTPD restart

Log in using the FTP tool.

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.