Linux successfully installed VSFTPD notebooks __linux

Source: Internet
Author: User
Tags create directory mkdir
These two days assigned to me to use the server vsftp for no reason not to work, no matter how also can not start, in the online search some solutions, so decided to reload VSFTPD.
First in http://vsftpd.beasts.org/Download vsftpd ...
Copy vsftpd.tar.gz to/root directory for decompression
[Root@localhost root]# tar xzvf vsftpd-2.0.6.tar.gz
[Root@localhost root]# CD vsftdp-2.0.6
Read the INSTALL and follow the steps above to execute the appropriate command

Step 1)
Execute make, which generates a VSFTPD binary file

Step 2)
2a) VSFTPD needs nobody users
[Root@localhost root]# Useradd Nobody
Useradd:user Nobody exists
2b) vsftpd need empty directory/usr/share/empty
[Root@localhost root]# Mkdir/usr/share/empty
Mkdir:cannot Create directory '/usr/share/empty ': file exist
2c) in order to anonymous login, users are required to be named FTP
[Root@localhost root]# Mkdir/var/ftp
[Root@localhost root]# useradd-d/var/ftp FTP

Change the owner and permissions of the/VAR/FTP directory
[Root@localhost root]# chown root.root/var/ftp
[Root@localhost root]# chmod og-w/var/ftp//Other and group remove Write permission

Step 3)
[Root@localhost root]# make install
The following need to copy the generated binaries, configuration files, and manpage to the appropriate directory
[Root@localhost root]# CP vsftpd/usr/local/sbin/
[Root@localhost root]# CP vsftpd.conf/etc/
[Root@localhost root]# CP Vsftpd.conf.5/usr/local/man/man5
[Root@localhost root]# CP VSFTPD.8/USR/LOCAL/MAN/MAN8
If there is no directory, create a copy of the corresponding directory

Step 4)
VSFTPD can run independently without relying on inetd (inetd or xinetd):
[Root@localhost root]# emacs/etc/vsftpd.conf//Modify VSFTPD.CONF Configuration
Add a row at the end
Listen=yes//This tells VSFTPD it won't be running from inetd.

[Root@localhost root]#/USR/LOCAL/SBIN/VSFTPD &
[1] 2104

To see if the VSFTPD 21 port is running:
[root@localhost root]# Netstat-na--ip | grep 21
8:tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN

If successful, you can log on to local FTP for testing
[Root@localhost root]# ftp localhost
Connected to localhost (127.0.0.1).
1.1.1 (VSFTPD)
Name (Localhost:chris): FTP
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
Ftp> ls

Note: If you have previously installed VSFTPD, you will first uninstall it, if the installation of the RPM install package uses the command:
[Root@localhost Root] #rpm-e vsftpd*

VSFTPD on the company's server during the day and return home at night to install it on its own machine, the operating system is Ubuntu
Download and extract the VSFTPD source package, into the directory make report a lot of errors, had to search the Internet to find the reason, found a solution, said above to install a few packages: Libpam0g-dev,libcap-dev,libwrap0-dev, Libssl-dev, but I only installed the 2nd and 4th by compiling ... The next step is the same as above. ~

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.