Configuration scheme of FTP server for Small and Medium-sized Enterprises

Source: Internet
Author: User
Tags rfc822
The configuration scheme of the FTP server for small and medium-sized enterprises-Linux Enterprise Application-Linux server application information. The following is a detailed description. & Amp; 2.1 Overview
In most LINUX releases, mongoingtonuniversity FTP is used. It is a famous FTP server software, generally referred to as Wu-ftp. It is powerful and can run well on many UNIX operating systems, such as ibm aix, FreeBSD, HP-UX, NeXTstep, Dynix, SunOS, and Solaris. More than half of FTP servers on the Internet use it. Wu-ftp has many powerful functions and is suitable for the management requirements of FTP servers with high throughput:
1) The user can automatically compress or decompress the file while downloading the file;
2) Different access restrictions can be imposed on machines on different networks;
3) records the upload and download times of files;
4) information about transmission can be displayed, so that you can understand the current transmission status in a timely manner;
5) You can set the maximum number of connections to improve efficiency and effectively control the load.
& Amp; 2.2 required resources
& 1.2.1 required packages
RedHat6.2 Server Installation
& 1.2.2 required configuration file
/Etc/ftpusers
/Etc/ftpaccess
/Var/run/ftp. pids
/Etc/ftpconversions
/Var/log/xferlog
/Etc/ftpgroups
/Etc/ftphosts
& 1.2.3 related commands
Ftpd FTP server program
Ftpshut is used to close FTP server programs
Ftpcount shows current online users
Ftpwho: view the current FTP server connection status
Ckconfig check if FTP server settings are correct
Ftprestart restart FTP service
& 1.2.4 related directories
/Home/ftpd/bin stores executable files for FTP users
/Home/ftpd/etc stores configuration files for FTP users
/Home/ftpd/pub storage for download information
/Home/ftpd/incoming space for uploading information
& Amp; 2.3 configuration Scheme
1./etc/ftpaccess
Description: ftp permission configuration file
Source file:
Guestuser weboa
# FTP users
Class all real, guest, anonymous *
Class weboa guest *
# Format: class [class name] [real/guest/anonymous] [IP address]
Function:
This command sets the user category on the FTP server. And the IP address of the client
To allow access from some or all IP addresses. In FTP
Users on the server can basically be divided into the following three types:
Real users with valid accounts on the FTP server;
Anonymous Users with records in guest;
Anonymous users with the lowest anonymous permissions
Email root@weboa.com.cn
Loginfails 5
# Format: loginfails [times]
Function: sets the number of times a user can enter the wrong password when logging on to the FTP server.
Readme README * login
Readme README * cwd = *
Message/welcome. msg login
Message. message cwd = *
# Format: message [file name] [command]
Function: when a user executes a specified command, the system displays the specified file content.
Compress yes all
# Format: compress [yes/no] [category]
Function: sets which category users can use the compress function.
Tar yes all
# Format: tar [yes/no] [category]
Function: sets the type of user to use the tar (archive) function.
Chmod no guest, anonymous
# Format: chmod [yes/no] [real/anonymous/guest]
Function:
Set whether to allow the specified user to use the chmod command to change the File Permission. The default value is
Yes.
Delete yes all
# Format: delete [yes/no] [real/anonymous/guest]
Function:
Sets whether to allow the specified user to use the delete command to delete files. The default value is allow.
Overwrite yes guest
# Format: overwrite [yes/no] [real/anonymous/guest]
Function: sets whether to allow a specified user to overwrite files of the same name. The default value is allow.
Rename yes guest
# Format: rename [yes/no] [real/anonymous/guest]
Function: sets whether to allow a specified user to rename a file using the rename Command. Default
Yes.
Log transfers anonymous, real inbound, outbound
# Format: log transfers [real/guest/anonymous] [inbound/outbound]
Function:
Set the user's upload (inbound) and download (outbound) operations to log.
Shutdown/etc/shutmsg
# Format: shutdown [file name]
Function:
The time when the FTP server is shut down can be set in the file specified later.
Once the time is set, you cannot log on to the FTP server.
Delete this file. This file must be generated by the command/bin/ftpshut.
Passwd-check rfc822 warn
# Format: passwd-check [none/trivial/rfc822] [enforce/warn]
Function: sets the password usage method for anonymous users.
None indicates that password verification is not performed, and any password can be logged on;
Trival indicates that you can log on as long as the entered password contains the "@" character;
Rfc822 indicates that the password must comply with the E-Mail format specified in RFC822.
Able to log on;
Enfore indicates that the entered password is not allowed to log on if it does not conform to the preceding format;
Warn indicates that only warning information is displayed when the password does not comply with the regulations, and you can still log on.
Limit remote 32 Any/etc/ftpd/tooworkflow. msg
# Format: limit [category] [number of people] [time] [file name]
Function: the function of this command is to set the class allowed to be connected within the specified time.
The maximum number of users. When the limit is reached, the content of the specified file is displayed.
Upload/home/ftpd * no
Upload/home/ftpd/pub yes anonymous 0644 dirs
# Format: upload [root directory] [upload Directory] [yes/no] [user] [permission]
[Dirs/nodirs]
Function: provides more detailed settings for directories that can be uploaded.
Alias incoming/home/ftp/incoming
# Format: alias [directory alias] [directory name]
Function: sets an alias for a specified directory. You can use a short
Directory alias.
2./etc/ftpusers
NOTE: For the sake of security, the FTP user blacklist must be disabled for the following users
Source file:
Root
Bin
Daemon
Adm
Lp
Sync
Shutdown
Halt
Mail
News
Uucp
Operator
Games
Nobody
& Amp; 2.4 Summary
Among many network applications, File Transfer porotocol plays an important role. Software resources are a very important resource on the Internet. Most of the various software resources are stored on the FTP server. FTP and WEB services occupy more than 80% of Internet applications.
The FTP service can be divided into two categories based on different service objects: one is the system FTP Server, which only allows valid users on the system to use; the other is the Anonymous FTP Server, Anonymous FTP Server, it can be used by anyone to log on to the FTP server to obtain files.
If you select "ftpd" when selecting to start the process during LINUX installation, after installing the LINUX system, it has installed a default FTP server to the system. We can use it to implement the functions of the system FTP server. We only need to customize the settings based on our needs.
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.