vsFTPd Installation and Configuration

2010-10-14  来源:本站原创  分类:OS  人气:169 

vsFTPd Installation and Configuration

vsFTPD is a small, easy to use FTP server program, is a Linux distribution in the most respected in the FTP server program, is characterized by small, light, safe to use.

vsFTPd installation

In the latest major release of the installation disk has vsFTPd package, provided with the appropriate distribution package management tools to install. Of course, can also go to the major release to find vsftpd FTP mirror package, with package management tools online installation. Recommended software provided with the distribution to install, is not recommended to compile the source package is installed.

Fedora or Redhat systems, you can use the following command-line installation;

[Root @ localhost ~] # yum install vsftpd

If it is debian like systems, you can use apt to install the line;

[Root @ localhost ~] # apt-get install vsftpd

If the RPM system, you can also find package vsftpd-xxxx.rpm through the rpm command to install;

[Root @ localhost ~] # rpm-ivh vsftpd *. rpm

Download Source Package installation

[Root @ localhost ~] # tar zxvf vsftpd-2.0.3.tar.gz
[Root @ localhost ~] # cd vsftpd-2.0.3
[Root @ localhost ~] # make; make install
[Root @ localhost ~] # cp vsftpd.conf / etc

And then modify / etc / vsftpd.conf, the last line in the configuration file add the following line;

listen = yes

Source package installation methods, if your system is RPM package management system, you can delete / etc / xinetd.d / vsftpd file; and then start the xinetd server;

[Root @ localhost ~] # / etc / init.d / xinetd restart
Stop xinetd: [OK]
Start xinetd: [OK]

vsFTPd server running

[Root @ localhost ~] # / usr / sbin / vsftpd &
[Root @ localhost ~] # / usr / local / sbin / vsftpd &

vsFTPd server down

To kill with pkill vsftpd vsftpd process, so put vsFTPd off, with psgrep vsftpd to view the process, if not the process, prove vsFTPd has closed; use to root privileges.

[Root @ localhost ~] # pkill vsftpd
[Root @ localhost ~] # pgrep vsftpd

In Fedora / Redhat / CentOS vsFTPd servers in the startup and shutdown:

In Fedora / Redhat / CentOS, you can also use the following method to start vsFTPd; of course need to use root privileges;

[Root @ localhost beinan] # / etc / init.d / vsftpd start
To vsftpd start vsftpd: [OK]

VsFTPd restart with the following command;

[Root @ localhost beinan] # / etc / init.d / vsftpd restart
Close vsftpd: [OK]
To vsftpd start vsftpd: [OK]

Off vsFTPd server, you should use the following command;

[Root @ localhost beinan] # / etc / init.d / vsftpd stop
Close vsftpd: [OK]

vsFTPd profile

vsftpd.conf is vsFTPd server configuration file, this file is usually / etc / vsftpd.conf or / etc / vsftpd / vsftpd.conf, vsftpd.conf vsFTPd server configuration file is the global control file, this configuration file, each line should be counted as a rule. To be effective need to be restarted after configuration.

vsFTPd configure virtual users

FTP users can not log on the system generally, and this is for safety. In the system log user does not have permission generally known as a virtual user; virtual users is to be written into / etc / passwd in; this is just a method of virtual users, but said it's not really a virtual user just log SHELL his authority to remove, so he can not afford to sign-on system;

If we want to beinan the user directory located in / opt / beinan this directory, and can not log in; we should be as follows

[Root @ localhost ~] # adduser-d / opt / beinan-g ftp-s / sbin / nologin beinan
[Root @ localhost ~] # passwd beinan
Changing password for user beinan.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[Root @ localhost ~] #

In fact, this is not enough, but also to change the configuration file vsftpd.conf, to ensure that the local virtual users to read and write permissions;

local_enable = YES
write_enable = YES
local_umask = 022

How to implement a virtual path?

For example:

/ Home / a map ftp://localhost/a
/ Home / b / c was ftp://localhost/c

Can be achieved by the following method.

[Root @ localhost ~] # mount-bind [the original directory] [new directory]

Such as my ftp default directory is / var / ftp, I want to / mnt / LinG / WinSoft folder mapped to the / var / ftp directory, and I as follows

We first in / var / ftp directory to build a directory

[Root @ localhost ~] # mkdir / var / ftp / WinSoft

And then run mount command

[Root @ localhost ~] # mount-bind / mnt / LinG / WinSoft / var / ftp / WinSoft

This OK.

Open vsFTP server logging

The following xferlog_file out in front of the #, which is open to vsftp the log function, so that we can in / var / log directory View vsftpd.log. This is vsFTP log function, which for us is extremely important.

xferlog_file = / var / log / vsftpd.log

How to limit the number of links to vsFTP server, and the largest number of links for each IP?

Should change the server's configuration file vsFTPd vsftpd.conf, add the following two lines:

max_clients = number
max_per_ip = number

Example: I want my vsFTP maximum support to 100 the number of links, each IP, can support up to 5 links, so I should add vsftpd.conf following two lines:

max_clients = 100
max_per_ip = 5

How to limit the transfer speed?

anon_max_rate = number

Note: This is the speed of anonymous

local_max_rate = number

Note: This is vsFTP the speed of a local user on the server

Note: This unit is the number of byte, so we have to calculate. For example, I want anonymous users and vsFTP 80KB on users to download, so this figure should be 1024 × 80 = 81920

So we have to add in vsftpd.conf following two lines

anon_max_rate = 81920
local_max_rate = 81920

相关文章
  • vsFTPd Installation and Configuration 2010-10-14

    vsFTPd Installation and Configuration vsFTPD is a small, easy to use FTP server program, is a Linux distribution in the most respected in the FTP server program, is characterized by small, light, safe to use. vsFTPd installation In the latest major r

  • Linux vsftpd installation and configuration 2010-07-29

    Ftp server vsftpd is the safest. But the configuration a little trouble for that. It is configured, can be used, but not ideal. Experienced comrades can explore. # # Installed vsftpd # Apt-get install vsftpd # # Repair a configuration file # Gedit /

  • [Practice has proved that finishing line] vsFTPd installation and configuration 2011-09-21

    Reference 1. VsFTPd configuration: http://www.centos.bz/2011/03/centos-install-vsftpd-ftp-server/ 2. Centos user & group permissions to add and delete users & Detailed questions: http://zh888.blog.51cto.com/1684752/385605 3. Setsebool command: htt

  • vsftpd installation and configuration instructions 2010-10-12

    1. Wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.2.2.tar.gz 2. Tar-xvzf vsftpd-2.2.2.tar.gz 3. Cd vsftpd-2.2.2 4. Make 5. Make install 6. According to the situation the following modifications, save it as / etc / vsftpd.conf Quote # Disables ano

  • Linux vsftpd installation configuration to use (more) 2010-02-26

    Linux vsftpd installation configuration to use (more) In this paper, a number of previous articles written on many occasions with their own installation and configuration experience, written in more detail, the article finally ftp command set with al

  • Vsftpd server installation and configuration of the ftp address to the local method of mapping mount 2010-12-21

    Vsftpd server installation and configuration of the ftp address to the local method of mapping mount 1. Installing ftp server daemon program luther @ gliethttp: ~ $ sudo apt-get install vsftpd luther @ gliethttp: ~ $ sudo mkdir-p / home / ftp_dir / u

  • Ftp under Ubuntu installation and configuration (vsftpd) 2011-07-27

    Ftp under Ubuntu software has a good variety: google this: Some of the general characteristics: wu-Ftp: relatively old, but more for its attacks, set much trouble, but more powerful. proFtpd: wu-Ftp can be achieved, and all the features of server-U.

  • centos 5 yum vsFTPd FTP server installation and configuration 2011-08-29

    vsftpd as FTP server, the Linux system is very common. Here we describe how to install centos system vsftp. What is vsftpdvsftpd is a Linux distribution in the most respected in the FTP server program. Characterized by small, light, safe to use. vsft

  • Detailed installation and configuration under linux vsftp 2010-10-14

    Detailed installation and configuration under linux vsftp 1, run the command yum install vsftpd Specific details are as follows: (If you can not update, you first configure access to the Internet, I have a document called CentOS in VMware, how to net

  • unbuntu ftp installation and configuration service 2010-10-15

    ubuntu ftp server installation and configuration 2007-07-20 18:33 1. Download vsftpd # Apt-get install vsftpd PS: If you are prompted ---- Tip "E: dpkg was interrupted, you must manually run 'dpkg - configure-a' to correct the problem." The solu

  • vsftpd Installation Tutorial 2010-12-19

    vsftpd Installation Tutorial 2009-02-01 05:13 Installation is very simple, according to the general situation can be installed inside the install to succeed (my CENTOS 4.4) Now I write the installation process to share: 1. Extract and compile the sof

  • CentOS-FTP Installation and Configuration 2010-12-23

    Transfer: http://blog.techippo.org/archives/348 1. Install vsftpd yum install vsftpd 2. Start / restart / shut down vsftpd server [Root @ localhost ftp] # / sbin / service vsftpd restart Shutting down vsftpd: [OK] Starting vsftpd for vsftpd: [OK] OK

  • Centos installation and configuration under the vsftp (rpm) 2011-09-15

    yum install vsftpd 2 start / restart / shut down vsftpd server [Root @ localhost ftp] # / sbin / service vsftpd restart Shutting down vsftpd: [OK] Starting vsftpd for vsftpd: [OK] OK indicates that the restart was successful. Startup and shutdown wer

  • Turn: Glassfish v3 Server Installation and Configuration 2010-03-29

    1.1 Glassfish v3 Server Installation and Configuration 1.1.1 unzip and install the mkdir / opt / glassfish cd / opt / glassfish unzip / home/pkg/glassfish-v3-preview-b46.zip Start glassfish: / opt/glassfish/glassfishv3/bin/asadmin start-domain 1.1.2

  • James mail server installation and configuration 2010-03-29

    James mail server installation and configuration of environment: Mail Server: OS: REDHAT LINUX AS 4 IP: 192.168.1.108 Subnet Mask: 255.255.0 Gateway: 192.168.1.1 DNS: 192.168.1.2 Client: Operating System: windows 2003 IP: 192.168.1.2 Subnet Mask: 255

  • Flex Installation and Configuration (change) 2010-05-01

    Need to install the software Eclipse3.3 MyEclipse6.0 (optional) Jdk1.5 Flash Plyer ActiveX 10 Windows debugger (IE) FB3_WWEJ_Plugin.exe (flex builder3) Installation Steps Eclipse Installation and Configuration (omitted) MyEclipse Installation and Con

  • ubuntu - Java Installation and Configuration 2010-03-28

    Java installation and configuration from Ubuntu English - http: / / wiki.ubuntu.org.cn / Java% E5% AE% 89% E8% A3% 85% E9% 85% 8D% E7% BD% AE * Install java: Open a terminal, execute the following command, or use Adept / Synaptic Software Manager, in

  • Apache2 + php5 + mysql under the windows installation and configuration diagrams 2010-02-16

    First ready software: Download the official Apache: apache_2.0.55-Win32-x86-no_ssl.msi , more versions here ; Download the official php: PHP-5.0.5-win32.zip , more mirror download address , more version of the download ; Download the official mysql:

  • JBoss 5.0 installation and configuration Xiangjie 2010-03-26

    JBoss 5.0 installation and configuration Xiangjie 1. Download and install JBoss In this article, I downloaded the JBoss version: JBOSS5.0 Beta4. Download: http://www.jboss.org/jbossas/downloads/ In the above download page to download JBOSS5.0 Beta4.z

  • haproxy_keepalived Installation and Configuration 2010-03-30

    haproxy_keepalived Installation and Configuration Reference to "ubuntu server best" learning how to configure the haproxy load balancing. Leave a simple installation and configuration records, and then further study. Installation Environment: ub