How to build FTP server in Linux

Source: Internet
Author: User
Tags mkdir

1, before the installation, in the system to create the following users and directories

#useradd nobody//default configuration needs to be used by users
#mkdir/usr/share/empty///default configuration directory to use
#mkdir/var/ftp//anonymous FTP users and directories to use
#useradd-D/var/ftp FTP//Create FTP account, default access to/var/ftp/directory below
#chown root.root/var/ftp///Change directory owner and group
#chmod og-w/var/ftp///Change directory Permissions
2, decompression vsftpd-2.0.7.tar.gz installation files

TAR-ZXVF vsftpd-2.0.7.tar.gz
Files are uncompressed and then entered into the vsftpd-2.0.7 directory

3, into the vsftpd-2.0.7 directory, execute the following command to compile and install the VSFTPD software

#cd vsftpd-2.0.7
#make//Compiling source code
#make Install//installation VSFTPD
4, manually copy vsftpd.conf files to the/etc directory, installation end.

#cp vsftpd.conf/etc/
Note: The following error occurs when make compile

The main reason for this error is the lack of patches, the solution download Attachment.bin and the execution of patch Sysdeputil.c/home/attachment.bin (note: Home for Attachment.bin directory)

Execute make again if there are errors

Solutions

Open Makefile
Vim Makefile
LIBS = './vsf_findlibs.sh '
The end increases-lcrypt into
LIBS = './vsf_findlibs.sh '-lcrypt

Related Article

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.