Configure the FTP server in GentooLinux

Source: Internet
Author: User
Host environment: Gentoo11.2 kernel version: LinuxKernel3.2.1 here select proftpd as the FTP server 1. install proftpdemerge-avproftpd2, configure proftpd first copy/etc/proftpd. conf. samplecp/etc/proftpd. con...

Host environment: gentos 11.2
Kernel version: Linux Kernel 3.2.1

Select proftpd as the FTP server.
1. install proftpd
Emerge-av proftpd
2. configure proftpd
First Copy/etc/proftpd. conf. sample
Cp/etc/proftpd. conf. sample/etc/proftpd. conf
Open the file and modify it as needed.
Below is my file
[Plain]
ServerName "yan's ftp server! "
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM on
AuthPAMConfig ftp
RequireValidShell off
 
# Listen on the standard FTP port 21.
Port 21
 
# New directories and files shocould not be group or world writable.
Umask 022
 
# To prevent DoS attacks set the maximum number of child processes
# To 30. If you need to allow more than 30 concurrent connections
# At once simply increase this value.
MaxInstances 30
 
# The server will run under ftp/ftp.
User ftp
Group ftp
 
# Every FTP sessions is "jailed" into the user's home directory.
DefaultRoot ~
 
# Generally files are overwritable.
AllowOverwrite on
 
# Disallow the use of the site chmod command.

DenyAll
 
SystemLog/var/log/proftpd. syslog
TransferLog/var/log/proftpd. transferlog
 
# A basic anonymous FTP account without an upload directory.
 
User ftp
Group ftp
 
# Every FTP sessions is "jailed" into the user's home directory.
DefaultRoot ~
 
# Generally files are overwritable.
AllowOverwrite on
 
# Disallow the use of the site chmod command.

DenyAll
 
SystemLog/var/log/proftpd. syslog
TransferLog/var/log/proftpd. transferlog
 
# A basic anonymous FTP account without an upload directory.
 
User ftp
Group ftp
 
# Clients can login with the username "anonymous" and "ftp ".
UserAlias anonymous ftp
 
# Limit the maximum number of parallel anonymous logins to 10.
MaxClients 10
 
# Prohibit the WRITE command for the anonymous users.

DenyAll
 

Order deny, allow
Allow from all
 
 

3. start the service
/Etc/proftpd start
If it is normal, the default FTP Configuration Server will be set up.

I encountered a problem, that is, ftp users always fail to log on and read the log.
Mar 16 12:05:46 yan-laptop proftpd [15868] yan-laptop: ProFTPD 1.3.3g (maint) (built Fri Mar 16 2012 10:36:06 CST) standalone mode STARTUP
Mar 16 12:05:46 yan-laptop proftpd [15819] yan-laptop (yan-laptop [: ffff: 127.0.0.1]): FTP session closed.
Mar 16 12:05:52 yan-laptop proftpd [15877] yan-laptop (yan-laptop [: ffff: 127.0.0.1]): FTP session opened.
Mar 16 12:05:57 yan-laptop proftpd [15877] yan-laptop (yan-laptop [: ffff: 127.0.0.1]): ftp: Directory/home/ftp/is not accessible.
Mar 16 12:07:39 yan-laptop proftpd [15877] yan-laptop (yan-laptop [: ffff: 127.0.0.1]): FTP session closed.
Mar 16 12:11:00 yan-laptop proftpd [1, 15868] yan-laptop: ProFTPD killed (signal 15)
Mar 16 12:11:00 yan-laptop proftpd [15868] yan-laptop: ProFTPD 1.3.3g standalone mode SHUTDOWN
Solution:
Remove the aclUSE mark and re-compile proftpd for installation.
USE = "-acl" emerge proftpd
Solve the problem after restarting the service.


Author yming0221

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.