FTP server configuration under linux [vsftp]

2010-08-12  来源:本站原创  分类:OS  人气:188 

vsftp is meant Very Security Ftp, following what it says on the summary of the configuration and use, through the introduction of this article and hope you can understand in Linux to configure a network service under the basic process

1. Related Profiles

/ Etc directory vsftpd.conf, vsftpd.ftpuser, vsftpd.user_list, / etc / xinetd.d / vsftpd

2. Configure vsftp

Was modified / etc / vsftpd.conf on it, the relevant parameters are as follows:

anonymous_enable = YES whether to allow anonymous ftp, as otherwise choose NO

local_enable = YES whether to allow local users to log on

local_umask = 022 default umask code

anon_upload_enable = YES whether to allow anonymous ftp user access

anon_upload_enable = YES whether to allow anonymous upload

anon_mkdir_write_enable = YES whether to allow anonymous users to create the right directory

dirmessage_enable = YES indicate the documentation directory, default is YES but need to call it a day to create. message file

xferlog_enable = YES is recorded ftp transfer process

connect_from_port_20 = YES so sure that transmission from port 20 (ftp-data)

chown_upload = YES

chown_username = username whether to change the upload file owner, if the system is the need to enter a user name, you can upload files into the main root is

xferlog_file = / var / log / vsftpd.log ftp transfer log in the path and name of the default is / var / log / vsftpd.log

xferlog_std_format = YES whether to use standard ftp xferlog mode

idle_session_timeout = 600 to set the default time off the inactive session

data_connection_timeout = 120 set the data transmission timeout

nopriv_user = ftpsecure run vsftpd in need of non-privileged system user by default is nobody

async_abor_enable = YES is allowed to run a special ftp command async ABOR. Here, I translated hell, reads as follows:

When enabled, a special FTP command known as "async ABOR" will be enabled. Only ill advised FTP clients will use this feature.Addtionally, this feature is awkward to handle, so it is dis-abled by default. Unfortunately, some FTP clients will hang when cancelling a transfer unless this feature is available, so you may wish to enable it.

ascii_upload_enable = YES

ascii_download_enable = YES whether to use ascii code to upload or download files

ftpd_banner = Welcome to chenlf FTP service. custom welcome message

deny_email_enable = YES

banned_email_file = / etc / vsftpd.banned_emails whether to allow anonymous users to prohibit the use of certain e-mail address, if the e-mail address is entered against the path and file name

chroot_list_enable = YES

chroot_list_file = / etc / vsftpd.chroot_list whether users of the system limiting, in their own home directory, if selected yes then chroot_list_file = / etc / vsftpd.chroot_list chroot is not listed in the list of users

max_clients = Number If the standalone mode start, then only $ Number of users can connect, other users will get an error message, default is 0 limited to only

message_file set obtained access to a directory name of the file directory information, by default. message

Did not find the bandwidth is limited only where, if anyone knows please tell me detailed instructions please refer to man vsftpd.conf help

3 Configuration Example

The following is my profile. To allow anonymous FTP, allowing upload, chroot user directory, upload file owner to root

anonymous_enable = YES

local_enable = YES

write_enable = YES

local_umask = 022

anon_upload_enable = YES

anon_mkdir_write_enable = YES

dirmessage_enable = YES

xferlog_enable = YES

connect_from_port_20 = YES

chown_uploads = YES

chown_username = root

xferlog_file = / var / log / vsftpd.log

xferlog_std_format = YES

pam_service_name = vsftpd

chroot_local_user = YES

4 Start Service

vsftpd and wu-ftpd can not both be starting, so modify the / etc / xinetd.d / wu-ftpd to disable set to yes, then modify / etc / vsftpd is set to NO will disable

Execution
1. Service vsftpd [start / stop]

2./etc/init.d/vsftpd [start / stop]
3./etc/initd.d/xinetd restart

On it. Well, now we have built a so-called very secure ftp server, and we'll try

This article comes from CSDN blog, reproduced, please indicate the source: http://blog.csdn.net/aptweasel/archive/2009/04/20/4095513.aspx

相关文章
  • FTP server configuration under linux [vsftp] 2010-08-12

    vsftp is meant Very Security Ftp, following what it says on the summary of the configuration and use, through the introduction of this article and hope you can understand in Linux to configure a network service under the basic process 1. Related Prof

  • 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

  • ssh server configuration under linux 2011-03-12

    ssh server configuration under linux SSH server: Since telnet is not very safe, so I need to remotely control an online service to my Linux host, then it should be how to do it! ? The best way of course, is a more secure online mechanism for programs

  • window server 2003 ftp server configuration 2010-11-03

    Install Internet Information Services and FTP services rely on the Microsoft Internet Information Services FTP (IIS), so IIS must be installed on the computer and the FTP service. To install IIS and FTP service, follow these steps. Note: In Windows S

  • SUSE Linux FTP server configuration 2011-08-25

    Note: when using the ftp command, you must first ensure that the ftp service has been opened (Yast2-> Network Basic-> Start / stop Services (inetd) to ftp into the active state); Then the configuration file / etc / inetd.conf, adding in a statement

  • cvs server configuration under linux 2008-06-06

    Check / etc / services First, type vi / etc / services Then type / cvspserver If you find no # in front of the line, then do not modify, or remove the line of # In the / etc / xinetd.d directory, create a file, just name, such as cvs vi / etc / xinet

  • NFS server configuration under Linux 2011-09-02

    Type: System V-launched Service Package: nfs-utils Process: nfsd, lockd, rpciod, rpc. {Mounted, rquotad, statd} Script: nfs, nfslock Port: the port designated by the portmap service (111) Configuration file: / etc / exports Aids: portmap (required) R

  • Svn server configuration under Linux 2010-09-17

    svn introduction, download, install, no longer described, the details can refer to http://subversion.tigris.org/ 1. First of all, to talk about the command svn There are three commands need to know, one is svnadmin, it is primarily responsible for es

  • Ubuntu under vsftpd, ftp server configuration 2011-05-12

    http://wiki.ubuntu.org.cn/Vsftpd # stand_alone.E5.92.8Csuper_daemon

  • Linux server configuration 2010-12-07

    Linux server configuration [Catalog] One, Linux based network service configuration Second, NFS server with Third, FTP server configuration Fourth, web server configuration V., Samba server configuration VI, Telnet server configuration VII, TFTP serv

  • The default configuration linux ftp server 2010-10-08

    linux general use as a server, we are all connected through remote operation, in linux, when select the default installation of ftp server. Is vsftpd. linux installation is complete, but also on the ftp server to configure it to use. Note that I used

  • Teach you to set up Red Hat Linux 9 FTP server under the 2010-08-11

    Transfer from: http://bbs.chinaunix.net/viewthread.php?tid=648429 Nowadays more and more people chose the open source Linux operating system, its performance is not inferior to Windows and approachable price is the best reason for people to choose it

  • Teach you in the Red Hat Linux 9 FTP server set up under 2010-08-11

    Transfer from: http://bbs.chinaunix.net/viewthread.php?tid=648429 Nowadays more and more people chose the open source Linux operating system, its performance is not inferior to Windows and approachable price is the best reason for people to choose it

  • FTP server set up under Linux 2011-01-01

    Through two days of exploration, and finally get to the ftp server, and via ftp service we've got a host and virtual machines to share it. 1. The first to install the FTP server into the Linux system, open the "System Settings" -> "Add /

  • Set up an FTP server under Linux 2011-01-01

    Through two days of exploration, and finally get to the ftp server, and ftp services through our addition of a host and virtual machines to share it. 1. The first to install the FTP server into the Linux system, open the "System Settings" ->

  • ununtu install ftp server 2010-11-30

    sudo apt-get install vsftpd # Vsftp (Very Secure FTP) is a kind of Unix / Linux is very secure, fast and stable FTP server After installation may automatically generate an account "ftp", / home will increase under a folder. If not, then you can

  • Ubuntu 10.04 set up ftp server 2011-06-22

    Ubuntu comes with an FTP server is vsftpd. Installation 1, install vsftpd sudo apt-get install vsftpd After installation in / home / next set up an ftp directory. This time you can try to access the next ftp://IP address. You should see a blank space

  • Using Xlight FTP Server FTP server set up locally 2010-03-16

    Using Xlight FTP Server build local FTP server, practical steps: First, download Xlight FTP Server.rar, unzip, double-click xlight.exe, as shown below Figure 1 Second, configure the virtual server. The use of routers, where I pre-set the internal ip

  • Xlight FTP Server set up using a local FTP server 2010-03-16

    Xlight FTP Server set up using a local FTP server, the specific steps: First, download Xlight FTP Server.rar, extract, double-click xlight.exe, as shown below Figure I Second, configure the virtual server. The use of routers, where I pre-set the inte

  • linux FTP server installed in the configuration under 2011-08-10

    Here is the virtual machine's basic configuration of linux ftp (redhat AS 4.0 example): First to install under linux vsftp package. rpm-qa | gerp vsftpd / / Find vsftpd have not installed if not installed on the vsftpd-2.0.1-5.i386.rpm (the first CD-