Install and configure a ProFTPD instance in KaliLinux

Source: Internet
Author: User

Install and configure a ProFTPD instance in KaliLinux

1. Install ProFTPD

In

Root @ kali :~ # Wget ftp://ftp.proftpd.org/historic/source/proftpd-1.3.0a.tar.gz

Root @ kali :~ # Tar-xf proftpd-1.3.0a.tar.bz2 (or tar zxvf proftpd-1.3.0a.tar.gz)

Root @ kali :~ # Cd proftpd-1.3.0a

Root @ kali :~ #./Configure -- prefix =/var/proftpd -- sysconfdir =/etc // set the installation directory/var/proftpd, configuration file directory/etc

Note: if an error occurs in this step
Configure: error: C ++ preprocessor "/lib/cpp" sanity check
Check See 'config. log' for more details
It indicates that the C ++ compiler package is not installed or the kernel header package is missing.
Solution:

1. Run apt-get install glibc-headers gcc-c ++ on the terminal.
2, apt-get install build-essential
Uname-r
Apt-get install linux-headers-'kernel version'

Root @ kali:/proftpd-1.3.0a # make // compile

Root @ kali:/proftpd-1.3.0a # make install // install

2. Configure ProFTPD

Root @ kali:/proftpd-1.3.0a # groupadd kevin // create the kevin Group

Root @ kali:/proftpd-1.3.0a # useradd kevin-g kevin-d/var/ftp-s/sbin/nologin // Add User kevin

Note: you must add a line "/sbin/nologin" to the/etc/shells file (otherwise, a logon Failure error occurs during ftp logon)

Root @ kali:/proftpd-1.3.0a # passwd kevin // SET Password

Root @ kali:/proftpd-1.3.0a # mkdir/var/ftp // create directory

Root @ kali:/proftpd-1.3.0a # chgrp kevin/var/ftp // change the group to which the ftp directory belongs to kevin

Root @ kali:/proftpd-1.3.0a # chmod-R 755/var/ftp // change ftp directory permission to master all permissions, same group and others for read permission

Root @ kali:/proftpd-1.3.0a # vim/etc/proftpd. conf // modify the configuration file

Change User nobody to User kevin and Group nogroup to Group kevin.

Root @ kali:/proftpd-1.3.0a #/var/proftpd/sbin/proftpd // start the service

Use ifconfig to view the IP address, for example, 192.168.121.129.

Root @ kali :~ # Ftp 192.168.121.129

Enter the new user name and password.

Alternatively, enter ftp: // 192.168.121.129 in the browser and log on to the page.

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.